Skip to content

Commit

Permalink
Merge pull request #22 from LeoVie/fix-version-file-building-in-actions
Browse files Browse the repository at this point in the history
Fix version file building in actions
  • Loading branch information
LeoVie authored Sep 14, 2022
2 parents e241bc9 + 811d71a commit 2b1b97e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/after-release-finish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 2b1b97e

Please sign in to comment.