Fix release notes being escaped properly
The release notes can contain special characters that will be expanded by bash if not escaped properly, such as the dollar sign (`$`) or the backtick (`\``). This PR replaces setting the `RELEASENOTES` environment variable using double quotes by a heredoc that does not perform any shell-related expansion.
This commit is contained in:
parent
a5aa633273
commit
2409d90d75
1 changed files with 4 additions and 1 deletions
|
@ -77,7 +77,10 @@ runs:
|
|||
|
||||
export RELEASE_DIR="${{ inputs.release-dir }}"
|
||||
|
||||
export RELEASENOTES="${{ inputs.release-notes }}"
|
||||
export RELEASENOTES=$(cat << 'EOF'
|
||||
${{ inputs.release-notes }}
|
||||
EOF
|
||||
)
|
||||
|
||||
export SHA="${{ inputs.sha }}"
|
||||
if test -z "$SHA"; then
|
||||
|
|
Loading…
Add table
Reference in a new issue