We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579c1d6 commit b026d34Copy full SHA for b026d34
.github/workflows/create-draft-release.yml
@@ -108,9 +108,12 @@ jobs:
108
109
- name: Prepare Release Title
110
id: title
111
+ env:
112
+ # "vX.Y.Z Release Title"
113
+ RAW_TITLE: ${{ steps.calculate-version.outputs.new_version }} ${{ github.event.inputs.release_title }}
114
run: |
- # Escaping double quotes in the title
- SANITIZED_TITLE=$(echo "${{ steps.calculate-version.outputs.new_version }} ${{ github.event.inputs.release_title }}" | sed 's/"/\\"/g')
115
+ # Print RAW_TITLE safely, then escape double quotes
116
+ SANITIZED_TITLE="$(printf '%s' "$RAW_TITLE" | sed 's/"/\\"/g')"
117
echo "sanitized_title=$SANITIZED_TITLE" >> "$GITHUB_OUTPUT"
118
119
- name: Write Release Notes to File
0 commit comments