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:
Paul van Tilburg 2024-07-27 14:07:22 +02:00
parent 39501b1a89
commit 6ab7d41741
No known key found for this signature in database
GPG key ID: C6DE073EDA9EEC4D

View file

@ -81,7 +81,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