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 dac8794 commit 073f1c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ jobs:
- name: create pr
id: create-pr
run: |
#PR_NOTES=$(cat pr_notes.txt)
PR_NOTES=$(cat pr_notes.txt | tr -d '\r')
PR_NOTES=$(cat pr_notes.txt | sed ':a;N;$!ba;s/\n/\\n/g')
PR_NOTES="## What's changed\\n\\n$PR_NOTES"
# Create a pull request with release notes
curl -L \
-X POST \
Expand All @@ -253,7 +253,7 @@ jobs:
https://api.github.com/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/pulls \
-d "$(jq -n \
--arg title "Release ${{ env.RELEASE_VERSION }}" \
--arg body "## What's changed\n\n$PR_NOTES" \
--arg body "$PR_NOTES" \
--arg head "release-${{ env.RELEASE_VERSION }}" \
--arg base "main" \
--argjson draft false \
Expand Down

0 comments on commit 073f1c1

Please sign in to comment.