github.event.pull_request.head.commit.message

This commit is contained in:
probonopd authored and GitHub committed 2023-07-15 13:11:36 +02:00
1 parent c394b94019
commit 7bbdbf4db0
1 file changed
+1 -1
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
fetch-depth: 0
- name: Auto-cancel builds triggered by branch updates
run: |
COMMIT_MSG="${{ github.event.commits[0].message }}"
COMMIT_MSG="${{ github.event.pull_request.head.commit.message }}"
if [[ $COMMIT_MSG == 'Merge branch'* ]]; then
echo "The workflow will not run as the commit message starts with 'Merge branch'."
exit 0