Skip to content

Commit

Permalink
changed release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
97gamjak committed May 31, 2024
1 parent 89eea7e commit cfe6534
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
Expand All @@ -78,7 +78,9 @@ jobs:
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ steps.previousTag.outputs.previousTag }}
toTag: ${{ env.previousTag }}
env:
previousTag: ${{ steps.previousTag.outputs.previousTag }}

- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down

0 comments on commit cfe6534

Please sign in to comment.