Skip to content

Commit 1376c02

Browse files
authored
ci: remove redundant new line in discord release messages (#1702)
1 parent f6ff848 commit 1376c02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
RELEASE_TAG: ${{ github.ref_name }}
4545
run: |
4646
processed_body=$(cat release_notes.txt | perl -0777 -pe 's/\n*### (\S+) (.+?)\n+/\n### `\1` \2\n/g')
47+
processed_body="${processed_body#$'\n'}"
4748
final_content=$(printf "%s\n%s" "-# Read the [GitHub release](<${RELEASE_URL}>)." "$processed_body")
4849
jq -n \
4950
--arg content "$final_content" \

0 commit comments

Comments
 (0)