Skip to content

Commit 3c997c8

Browse files
committed
ci: skip commit message check for dependabot PRs
Skip the commit-msg-check job for any PR created by dependabot to avoid failures on automated dependency updates that may not follow conventional commit message format. - Use !startsWith(github.actor, 'dependabot') condition - Covers all dependabot variants (dependabot, dependabot[bot], etc.) - Maintains commit message validation for human contributors Signed-off-by: Vibhu Prashar <[email protected]>
1 parent 905238a commit 3c997c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-checks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ jobs:
102102
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
103103

104104
pre-commit:
105-
if: ${{ github.actor != 'dependabot[bot]' || github.actor != 'dependabot' }}
106105
runs-on: ubuntu-latest
107106
steps:
108107
- name: Checkout source
@@ -118,7 +117,8 @@ jobs:
118117
run: pre-commit run --all-files
119118

120119
commit-msg-check:
121-
if: ${{ github.actor != 'dependabot[bot]' || github.actor != 'dependabot' }}
120+
# NOTE: Skipping the commit-msg check for dependabot PRs
121+
if: ${{ !startsWith(github.actor, 'dependabot') }}
122122
runs-on: ubuntu-latest
123123
steps:
124124
- name: Checkout source

0 commit comments

Comments
 (0)