diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 15d05cc..5ebf689 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,7 @@ permissions: contents: write on: push: + branches: [ main ] paths: - 'src/**' - 'lib/**' @@ -76,6 +77,9 @@ jobs: run: | 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 uses: actions/download-artifact@v2 with: