Skip to content

Commit

Permalink
Fix get release notes step in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jyaganeh committed Apr 29, 2023
1 parent f671c7b commit d5c2c64
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ jobs:

- name: Get the release notes
id: get_release_notes
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}
run: |
VERSION=${{ steps.get_version.outputs.VERSION }}
NOTES="$(awk "/## Version $VERSION/{flag=1;next}/## Version/{flag=0}flag" CHANGELOG.md)"
echo "NOTES=${NOTES}" >> $GITHUB_OUTPUT
delimiter="$(openssl rand -hex 8)"
{
echo "NOTES<<${delimiter}"
awk "/## Version $VERSION/{flag=1;next}/## Version/{flag=0}flag" CHANGELOG.md
echo ${delimiter}
} >> $GITHUB_OUTPUT
- uses: actions/setup-java@v2
with:
Expand Down

0 comments on commit d5c2c64

Please sign in to comment.