Skip to content

Commit 5d447bf

Browse files
committed
Move both main-only steps last in coverage.yml
1 parent 42f776b commit 5d447bf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/coverage.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ jobs:
4646
done
4747
sed "s/{shortcommit}/${GITHUB_SHA:0:8}/g;s/{commit}/${GITHUB_SHA}/g;s#{repo}#${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}#g" .github/workflows/coverage/index.html.template > build/gh-pages/index.html
4848
49-
- name: Create coverage badge
50-
# This creates a file that defines a [Shields.io endpoint badge](https://shields.io/endpoint)
51-
# which we can then include in the project README.
52-
uses: ./.github/actions/pit-results-badge
53-
if: github.ref_name == 'main'
54-
with:
55-
output-file: build/gh-pages/coverage-badge.json
56-
5749
- name: Check out GitHub Pages branch
5850
uses: actions/checkout@v4
5951
with:
@@ -71,6 +63,14 @@ jobs:
7163
prev-commit: ${{ env.PREV_COMMIT }}
7264
prev-mutations-file: prev-mutations.xml
7365

66+
- name: Create coverage badge
67+
# This creates a file that defines a [Shields.io endpoint badge](https://shields.io/endpoint)
68+
# which we can then include in the project README.
69+
uses: ./.github/actions/pit-results-badge
70+
if: github.ref_name == 'main'
71+
with:
72+
output-file: build/gh-pages/coverage-badge.json
73+
7474
- name: Push to GitHub Pages
7575
if: github.ref_name == 'main'
7676
run: |

0 commit comments

Comments
 (0)