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 cfe6534 commit adce9fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,18 @@ jobs:
- name: Get previous tag
id: previousTag
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | head -1)
name=$(git --no-pager tag --sort=creatordate | head -1)
echo "previousTag: $name"
echo "previousTag=$name" >> $GITHUB_ENV
echo "::set-output name=previousTag::$name"
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
fromTag: ${{ github.ref_name }}
toTag: ${{ env.previousTag }}
env:
previousTag: ${{ steps.previousTag.outputs.previousTag }}
toTag: ${{ steps.previousTag.outputs.previousTag }}

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

0 comments on commit adce9fe

Please sign in to comment.