Skip to content

Commit 47dc68f

Browse files
committed
1 parent 99ff26b commit 47dc68f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/tags.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
VERSION_TAG: ${{ steps.get_version.outputs.VERSION_TAG }}
2828
run: |
2929
RELEASE_NOTES=$(jq --arg version $VERSION -r '.releases[$version].releaseNotes | .[]' projects/rss-reader/src/assets/release-notes/release-notes.json)
30+
# See https://github.community/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/m-p/38372/highlight/true#M3322
31+
RELEASE_NOTES="${RELEASE_NOTES//'%'/'%25'}"
32+
RELEASE_NOTES="${RELEASE_NOTES//$'\n'/'%0A'}"
33+
RELEASE_NOTES="${RELEASE_NOTES//$'\r'/'%0D'}"
3034
echo ::set-output name=RELEASE_NOTES::"$RELEASE_NOTES"
3135
RELEASE_NAME=$(jq --arg version $VERSION --arg versionTag $VERSION_TAG -r '.releases[$version].releaseName // $versionTag' projects/rss-reader/src/assets/release-notes/release-notes.json)
3236
echo ::set-output name=RELEASE_NAME::"$RELEASE_NAME"

0 commit comments

Comments
 (0)