Skip to content

Commit

Permalink
fix notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dvviktordelev committed Jun 5, 2024
1 parent efdfc95 commit 086cb08
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ jobs:
"https://api.github.com/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/pulls?state=closed&base=develop&sort=updated&direction=desc")
if echo "$PRS" | jq -e . > /dev/null 2>&1; then
#PR_NOTES=$(echo "$PRS" | jq -r --arg since "$RELEASE_DATE" '.[] | select(.merged_at != null and .merged_at > $since) | "* [#\(.number)](\(.html_url)) \(.title)"')
PR_NOTES=$(echo "$PRS" | jq -r --arg since "$RELEASE_DATE" '.[] | select(.merged_at != null and .merged_at > $since) | "* [#\(.number)](\(.html_url)) \(.title)"' | tr '\n' '\\n')
PR_NOTES=$(echo "$PRS" | jq -r --arg since "$RELEASE_DATE" '.[] | select(.merged_at != null and .merged_at > $since) | "* [#\(.number)](\(.html_url)) \(.title)"')
else
PR_NOTES="could not fetch release notes"
fi
Expand All @@ -244,7 +243,7 @@ jobs:
id: create-pr
run: |
PR_NOTES=$(cat pr_notes.txt)
PR_NOTES="What's changed\n\n${PR_NOTES}"
PR_NOTES=$(printf "What's changed\n\n%s" "$PR_NOTES")
# Create a pull request with release notes
curl -L \
-X POST \
Expand Down

0 comments on commit 086cb08

Please sign in to comment.