aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2022-01-15 21:02:42 -0500
committerJames McCoy <jamessan@jamessan.com>2022-01-17 12:21:09 -0500
commitd7e2229b41748e84f525ee44cee19be81382ceab (patch)
tree37ef6a1e77fbe4d37dcb390a3ee86166acab9399
parent9055ec5792d29eb8ad5e5c20708ffcb980ad8609 (diff)
downloadrneovim-d7e2229b41748e84f525ee44cee19be81382ceab.tar.gz
rneovim-d7e2229b41748e84f525ee44cee19be81382ceab.tar.bz2
rneovim-d7e2229b41748e84f525ee44cee19be81382ceab.zip
ci(commitlint): use pull_request_target to avoid "skip ci"
-rw-r--r--.github/workflows/commitlint.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml
index 6c74ec99d3..5044b7dcab 100644
--- a/.github/workflows/commitlint.yml
+++ b/.github/workflows/commitlint.yml
@@ -1,13 +1,13 @@
name: "Commit Linter"
on:
- pull_request:
+ # Only pull_request and push honor [skip ci]. Since this workflow must pass
+ # to merge a PR, it can't be skipped, so use pull_request_target
+ pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
lint-commits:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with: