Skip to content

Commit 6ff643a

Browse files
committed
ci: skip codecov for dependabot PRs
Dependabot PRs fail codecov upload with "Token required because branch is protected" error. This change modifies the test-and-codecov job condition to exclude dependabot PRs while maintaining normal codecov functionality for all other contributors. Signed-off-by: vprashar2929 <[email protected]>
1 parent 7a8b663 commit 6ff643a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204

205205
test-and-codecov:
206206
needs: check-changes
207-
if: needs.check-changes.outputs.changes == 'true' || github.actor == 'dependabot[bot]'
207+
if: needs.check-changes.outputs.changes == 'true' && github.actor != 'dependabot[bot]'
208208
uses: ./.github/workflows/test-and-codecov.yaml
209209
secrets:
210210
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)