Skip to content

Commit 399f52f

Browse files
authored
Only get the subject of the commit message for notifications (#3689)
When commit messages are not properly cleaned up during a squash and merge they could have characters that make the workflow break. With this change we're only retrieving the subject of the commit message (instead of the whole body) reducing the probability of breaking the workflow.
1 parent d11e3bc commit 399f52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/updates-notification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Get variables for Slack
3333
id: slack
3434
run: |
35-
echo "message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT
35+
echo "message=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
3636
echo "date=$(date +%s)" >> $GITHUB_OUTPUT
3737
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
3838
- name: Send Notification

0 commit comments

Comments
 (0)