From 811d71a4889bd6bc6ad954ab578eed01ea7732dc Mon Sep 17 00:00:00 2001 From: Leo Viezens Date: Wed, 14 Sep 2022 09:27:43 +0200 Subject: [PATCH] Fix version file building in actions --- .github/workflows/after-release-finish.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/after-release-finish.yml b/.github/workflows/after-release-finish.yml index b1c097b..21cc5e3 100644 --- a/.github/workflows/after-release-finish.yml +++ b/.github/workflows/after-release-finish.yml @@ -7,8 +7,22 @@ jobs: Update_VERSION_file: runs-on: ubuntu-latest steps: + - name: Get version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} + + - name: Get tag + id: get_tag + run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/} + - name: Update VERSION file - run: echo ${{ steps.get_tag.outputs.TAG }} > VERSION + run: echo ${{ steps.get_version.outputs.VERSION }} > VERSION + + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: ${{ steps.get_tag.outputs.TAG }} + commit_message: Update VERSION file + file_pattern: VERSION - uses: stefanzweifel/git-auto-commit-action@v4 with: @@ -20,9 +34,6 @@ jobs: runs-on: ubuntu-latest needs: Update_VERSION_file steps: - - name: Get tag - id: get_tag - run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/v} - name: Login to DockerHub uses: docker/login-action@v1 with: