Skip to content

Commit 16704f7

Browse files
authored
Fix dependabot coverage exclusion
See https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request For PRs `github.ref` is actually `refs/pull/PULL_REQUEST_NUMBER/merge`.
1 parent d3f4f10 commit 16704f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
# Do not run coverage for forks since they cannot upload
149149
# the results to codecov. For reference, see:
150150
# https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution#example-only-run-job-for-specific-repository
151-
if: github.repository == 'casid/jte' && !startsWith(github.ref, 'refs/heads/dependabot/')
151+
if: github.repository == 'casid/jte' && !startsWith(github.head_ref, 'dependabot/')
152152
runs-on: ubuntu-latest
153153
needs:
154154
- test-gradle-plugin

0 commit comments

Comments
 (0)