Skip to content

Commit babed8e

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: Vibhu Prashar <vibhu.sharma2929@gmail.com>
1 parent 3fc1f44 commit babed8e

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
@@ -99,7 +99,7 @@ jobs:
9999

100100
test-and-codecov:
101101
needs: check-changes
102-
if: needs.check-changes.outputs.changes == 'true'
102+
if: needs.check-changes.outputs.changes == 'true' && github.actor != 'dependabot[bot]'
103103
permissions:
104104
contents: read
105105
uses: ./.github/workflows/test-and-codecov.yaml

0 commit comments

Comments
 (0)