Skip to content

Commit 91fba25

Browse files
take coverage from latest only
1 parent def4dec commit 91fba25

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,8 @@ jobs:
5353
compression-level: 0
5454
retention-days: 1
5555

56-
coverage:
57-
name: Generate coverage badge
58-
59-
runs-on: ubuntu-latest
60-
61-
needs: linux
62-
63-
permissions:
64-
contents: read
65-
pull-requests: write
66-
67-
steps:
68-
- uses: actions/checkout@v4
69-
- uses: haskell-actions/setup@v2
70-
with:
71-
ghc-version: latest
72-
73-
- name: Download all artifacts
74-
uses: actions/download-artifact@v4
75-
with:
76-
pattern: '*-coverage'
77-
merge-multiple: true
78-
79-
- run: hpc sum constrained.tix constrained-*.tix
80-
81-
- run: hpc report constrained.tix > report.md
82-
8356
- name: Find Comment
84-
if: github.event.pull_request
57+
if: github.event.pull_request && ${{matrix.ghc-version}} == latest
8558
uses: peter-evans/find-comment@v3
8659
id: fc
8760
with:
@@ -90,7 +63,7 @@ jobs:
9063
body-includes: "expressions used"
9164

9265
- name: Create or update comment
93-
if: github.event.pull_request
66+
if: github.event.pull_request && ${{matrix.ghc-version}} == latest
9467
uses: peter-evans/create-or-update-comment@v4
9568
with:
9669
comment-id: ${{ steps.fc.outputs.comment-id }}

0 commit comments

Comments
 (0)