Skip to content

Commit 42f776b

Browse files
committed
Run pitest workflow on dependabot-pitest branches, but don't overwrite reports
1 parent 3d20dac commit 42f776b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: Test coverage
33

44
on:
55
push:
6-
branches: [main]
6+
branches:
7+
- main
8+
- dependabot/gradle/info.solidsoft.gradle.pitest-gradle-pitest-plugin-*
79

810
jobs:
911
test:
@@ -48,6 +50,7 @@ jobs:
4850
# This creates a file that defines a [Shields.io endpoint badge](https://shields.io/endpoint)
4951
# which we can then include in the project README.
5052
uses: ./.github/actions/pit-results-badge
53+
if: github.ref_name == 'main'
5154
with:
5255
output-file: build/gh-pages/coverage-badge.json
5356

@@ -69,6 +72,7 @@ jobs:
6972
prev-mutations-file: prev-mutations.xml
7073

7174
- name: Push to GitHub Pages
75+
if: github.ref_name == 'main'
7276
run: |
7377
git config user.name github-actions
7478
git config user.email [email protected]

0 commit comments

Comments
 (0)