mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-11-24 10:10:56 -05:00
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
39501b1a89
commit
6ab7d41741
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue