Skip to content

Commit 021c38c

Browse files
authored
ci: use release body to broadcast releases on discord (#1620)
1 parent 2f5bc68 commit 021c38c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/create-gh-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ jobs:
4040
- name: Broadcast release on Discord
4141
env:
4242
DISCORD_WEBHOOK: ${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}
43-
RELEASE_BODY: ${{ steps.generate_release_notes.outputs.changelog }}
4443
RELEASE_URL: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
4544
RELEASE_TAG: ${{ github.ref_name }}
4645
run: |
47-
processed_body=$(echo "$RELEASE_BODY" | perl -0777 -pe 's/\n*### (\S+) (.+?)\n+/\n### `\1` \2\n/g')
46+
processed_body=$(cat release_notes.txt | perl -0777 -pe 's/\n*### (\S+) (.+?)\n+/\n### `\1` \2\n/g')
4847
final_content=$(printf "%s\n%s" "-# Read the [GitHub release](<${RELEASE_URL}>)." "$processed_body")
4948
jq -n \
5049
--arg content "$final_content" \

0 commit comments

Comments
 (0)