Skip to content

Commit cd18e99

Browse files
committed
ci: use --notes-file argument when updating github release notes
Prevent command substitution in the shell
1 parent 8bdeed4 commit cd18e99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ jobs:
128128
129129
- name: Update GH release description
130130
if: github.ref_type == 'tag' && runner.os == 'Linux'
131-
run: gh release edit ${{ github.ref_name }} --notes="${{ steps.changelog.outputs.content }}"
131+
run: printf '%s' "$RELEASE_NOTES" | gh release edit ${{ github.ref_name }} --notes-file -
132132
env:
133133
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134+
RELEASE_NOTES: ${{ steps.changelog.outputs.content }}
134135
# end Update GH release notes

0 commit comments

Comments
 (0)