Update main.yml
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -3,6 +3,7 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [ main ]
|
||||||
paths:
|
paths:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- 'lib/**'
|
- 'lib/**'
|
||||||
@@ -76,6 +77,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "::set-output name=firmware_version::$(grep '*VERSION' src/Globals.cpp | cut -d'=' -f2 | sed -r 's/"(.*)";/\1/' | awk '{$1=$1};1')"
|
echo "::set-output name=firmware_version::$(grep '*VERSION' src/Globals.cpp | cut -d'=' -f2 | sed -r 's/"(.*)";/\1/' | awk '{$1=$1};1')"
|
||||||
|
|
||||||
|
- name: Create Versionfile
|
||||||
|
run: echo '${{ steps.version_number.outputs.firmware_version }}' > version
|
||||||
|
|
||||||
- name: Download firmware
|
- name: Download firmware
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user