Skip to content

Commit

Permalink
Fix replace release notes with single quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
timcassell committed Dec 23, 2022
1 parent 72386be commit d9c820d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ jobs:
run: sed -i "{s/{VERSION}/${{ steps.set_tag.outputs.version }}/g}" ProtoPromiseUnityHelpers/nuget/ProtoPromiseUnityHelpers.nuspec

- name: Overwrite ProtoPromise nuspec release notes
env:
RELEASE_NOTES: ${{ steps.get_release.outputs.body }}
run: |
RELEASE_NOTES='${{ steps.get_release.outputs.body }}'
export REPLACE_RELEASE_NOTES=$(echo "$RELEASE_NOTES" | sed -e ':a' -e 'N' -e '$!ba' -e 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g')
export REPLACE_RELEASE_NOTES=$(echo "$ENV{RELEASE_NOTES}" | sed -e ':a' -e 'N' -e '$!ba' -e 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g')
perl -l -p -i -e 's/{RELEASE_NOTES}/$ENV{REPLACE_RELEASE_NOTES}/g' ProtoPromise/nuget/ProtoPromise.nuspec
- name: Print nuspecs
Expand Down

0 comments on commit d9c820d

Please sign in to comment.