From f93ab028a65eea013fe27d1956aa397fcaac094b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20M=C3=BChl?= <31169771+Blueforcer@users.noreply.github.com> Date: Thu, 23 Mar 2023 22:05:01 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) 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: