From 399f52ffa952be9cb714dc095506423f2f11a3ad Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Tue, 28 Mar 2023 00:18:48 -0700 Subject: [PATCH] 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. --- .github/workflows/updates-notification.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/updates-notification.yml b/.github/workflows/updates-notification.yml index 202ec31bad..d472dd7b4e 100644 --- a/.github/workflows/updates-notification.yml +++ b/.github/workflows/updates-notification.yml @@ -32,7 +32,7 @@ jobs: - name: Get variables for Slack id: slack run: | - echo "message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT + echo "message=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT echo "date=$(date +%s)" >> $GITHUB_OUTPUT echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Send Notification