[ticket/16675] Check commit messages on pull_request event only

PHPBB3-16675
This commit is contained in:
rxu 2021-01-10 15:20:28 +07:00
parent f6c6b13fcb
commit 0d45825016
No known key found for this signature in database
GPG key ID: 955F0567380E586A

View file

@ -77,9 +77,10 @@ jobs:
.github/check-executable-files.sh ./
- name: Check commit message
env:
BRANCH: ${{ github.event.pull_request.base.sha }}
if: github.event_name == 'pull_request'
run: |
# Get previous merge commit to get commit range from
export BRANCH=$(git rev-list --merges -n 1 HEAD^1)
git-tools/commit-msg-hook-range.sh $BRANCH..$GITHUB_SHA
# Tests for MySQL and MariaDB