Skip to content

Commit

Permalink
ci: automate changelog creation for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kucaahbe committed Jan 30, 2024
1 parent 06bf971 commit f285568
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ jobs:
chmod +x "$dir/myrc"
tar -czf "$dir.tar.gz" -C "$dir" myrc
done
tag="${{ steps.tag.outputs.tag }}"
#body="TODO"
#gh release create "$tag" --draft --generate-notes --notes "$body" *.tar.gz
gh release create "$tag" --draft --generate-notes *.tar.gz
body="$(awk "/## \\[${tag#v}\\]/{flag=1;next}/## \\[/{flag=0}flag" CHANGELOG.md)"
gh release create "$tag" --draft --generate-notes --notes "$body" *.tar.gz
# the "$tag" value is incorrect for draft release (the correct one
# returns previous gh release command)
Expand Down

0 comments on commit f285568

Please sign in to comment.