Skip to content

Commit

Permalink
Add some output while checking release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld committed Apr 3, 2024
1 parent 96a3c99 commit 0b07366
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/packaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ jobs:
run: |
release_notes="$(awk '/^## / && !found { found=1; print; next } /^## / && found { exit } found { print }' CHANGELOG.md)"
release_notes_header="$(echo "$release_notes" | head -1)"
echo "Found release notes for '$release_notes_header'"
release_notes_body="$(echo "$release_notes" | tail +2)"
release_notes_body="${release_notes_body#"${release_notes_body%%[![:space:]]*}"}"
release_notes_body="${release_notes_body%"${release_notes_body##*[![:space:]]}"}"
release_notes_version="$(echo "$release_notes_header" | cut -d' ' -f2 | sed 's/[][]//g')"
echo "Found version '$release_notes_version' in release notes"
test "$release_notes_version" == "${{ env.release_version }}"
{
echo "release_notes_body<<RELEASE_NOTES_EOF"
Expand Down

0 comments on commit 0b07366

Please sign in to comment.