fix_: commit-check support forks (#5851)

* fix_: commit-check support forks

* fix_: run on pull_request_target

* fix_: more event types
This commit is contained in:
Igor Sirotin 2024-09-20 18:11:51 +01:00 committed by GitHub
parent d6565375c1
commit e53a5c968e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -1,10 +1,13 @@
name: "Conventional Commits"
on:
pull_request:
pull_request_target:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
jobs:
main:
name: Validate format
@ -20,7 +23,7 @@ jobs:
- name: Fetch tags
run: |
git fetch --tags --quiet
git checkout origin/${GITHUB_HEAD_REF}
git checkout ${{ github.event.pull_request.head.ref }}
- name: Check commit message
id: check_commit_message