github.event.pull_request.head.commit.message
This commit is contained in:
1 parent
c394b94019
commit
7bbdbf4db0
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user