revert: "ci(commitlint): use pull_request_target to avoid "skip ci"" (#20845)

This reverts commit d7e2229b41.

This workflow isn't required to pass to merge a PR any more. Using
pull_request_target to bypass the required check when using [skip ci] is
therefore no longer needed.
This commit is contained in:
dundargoc 2022-11-05 22:09:50 +01:00 committed by GitHub
parent 8765c7e288
commit 5723b19210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,6 @@
name: "Commit Linter" name: "Commit Linter"
on: on:
# Only pull_request and push honor [skip ci]. Since this workflow must pass pull_request:
# to merge a PR, it can't be skipped, so use pull_request_target
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review] types: [opened, synchronize, reopened, ready_for_review]
branches: branches:
- 'master' - 'master'
@ -10,6 +8,8 @@ jobs:
lint-commits: lint-commits:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with: