File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -106,11 +106,25 @@ jobs:
106
106
console.log(`releaseNotes (modified): ${JSON.stringify(modifiedBody, null, 2)}`);
107
107
core.setOutput("release_body", modifiedBody);
108
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 : |
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
120
+ run : |
121
+ echo "${{ steps.generate-release-notes.outputs.release_body }}" > release-notes.txt
122
+
109
123
- name : Create Draft Release
110
124
run : |
111
125
gh release create "${{ steps.calculate-version.outputs.new_version }}" \
112
- --title "${{ steps.calculate-version .outputs.new_version }} ${{ github.event.inputs.release_title }}" \
113
- --notes "${{ steps.generate- release-notes.outputs.release_body }}" \
126
+ --title "${{ steps.title .outputs.sanitized_title }}" \
127
+ --notes-file release-notes.txt \
114
128
--draft \
115
129
--repo "${{ github.repository }}"
116
130
env :
You can’t perform that action at this time.
0 commit comments