Skip to content

Commit

Permalink
chore: invoke multiline syntax for GITHUB_OUTPUT in staging workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Ilona Shishov <[email protected]>
  • Loading branch information
IlonaShishov committed Feb 5, 2024
1 parent 63e78c4 commit 7cf1186
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ jobs:
echo "Release notes are missing for version $version."
exit 1
else
echo "notes=$notes" >> "$GITHUB_OUTPUT"
echo "version=$version" >> "$GITHUB_OUTPUT"
escaped_notes=$(echo "$notes" | sed 's/[][&(){}\\/*+?^|.$`'"'"'=!%;<>,:;-\"]/\\&/g')
delimiter="$(openssl rand -hex 8)"
echo "notes<<${delimiter}" >> "$GITHUB_OUTPUT"
echo "$escaped_notes" >> "$GITHUB_OUTPUT"
echo "${delimiter}" >> "$GITHUB_OUTPUT"
fi
- name: Update current version date in changelog
Expand Down Expand Up @@ -146,7 +152,7 @@ jobs:
const response = await github.request('POST /repos/' + repo_name + '/releases', {
tag_name: '${{ steps.bump.outputs.version }}',
name: '${{ steps.bump.outputs.version }}',
body: ${{ steps.release-notes.outputs.notes }},
body: '${{ steps.release-notes.outputs.notes }}',
prerelease: false,
generate_release_notes: true
})
Expand Down

0 comments on commit 7cf1186

Please sign in to comment.