Skip to content

Commit 8cecc10

Browse files
committed
fix: use notes-file for gh release to avoid shell expansion of backticks
1 parent 0c4c080 commit 8cecc10

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,16 @@ jobs:
144144
echo "CHANGELOG_EOF"
145145
} >> "$GITHUB_OUTPUT"
146146
147+
- name: Write release notes
148+
env:
149+
NOTES: ${{ steps.changelog.outputs.body }}
150+
run: printf '%s\n' "$NOTES" > /tmp/release-notes.md
151+
147152
- name: Publish release
148153
run: |
149154
gh release create "${{ github.ref_name }}" \
150155
--title "${{ github.ref_name }}" \
151-
--notes "${{ steps.changelog.outputs.body }}" \
152-
--exclude-source-code-archives \
156+
--notes-file /tmp/release-notes.md \
153157
artifacts/*
154158
env:
155159
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)