Skip to content

Commit

Permalink
ci: changelog creation for release notes refactored - hopefully worki…
Browse files Browse the repository at this point in the history
…ng now
  • Loading branch information
97gamjak committed Jun 12, 2024
1 parent 0f42fe5 commit 66c8d81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ jobs:
id: generate_changelog
run: |
name=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | tail -2 | head -1)
changelog=$(git-changelog --sections ci,doc,feat,fix,perf,test -F "$name.." -c angular)
echo "changelog_var=$changelog" >> $GITHUB_ENV
echo "::set-output name=changelog_var::$changelog"
git-changelog --sections ci,doc,feat,fix,perf,test -F "$name.." -c angular > changelog.tmp
- name: Create GitHub Release
env:
Expand All @@ -98,7 +96,7 @@ jobs:
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--notes "${{ steps.generate_changelog.outputs.changelog_var }}"
--notes "$(cat changelog.tmp)"
- name: Build CHANGELOG.md
run: |
Expand Down

0 comments on commit 66c8d81

Please sign in to comment.