Skip to content

Commit 20d95aa

Browse files
committed
build: improve release workflow
1 parent 187dbb6 commit 20d95aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,16 @@ jobs:
4545
with:
4646
config: cliff.toml
4747
args: --latest --strip header
48+
github_token: ${{ secrets.GITHUB_TOKEN }}
4849

4950
# TODO: Perhaps there is a simpler way to avoid the heading of each release
5051
- name: Process release notes
5152
id: process-notes
5253
run: |
5354
# Remove the first two lines (version heading and empty line)
54-
echo "${{ steps.git-cliff.outputs.content }}" | tail -n +3 > release_notes.txt
55+
cat << 'RELEASE_EOF' | tail -n +3 > release_notes.txt
56+
${{ steps.git-cliff.outputs.content }}
57+
RELEASE_EOF
5558
echo "content<<EOF" >> $GITHUB_OUTPUT
5659
cat release_notes.txt >> $GITHUB_OUTPUT
5760
echo "EOF" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)