Skip to content

Commit b77efe5

Browse files
try event trigger
1 parent 3aff81d commit b77efe5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ jobs:
4545
.hpc
4646
restore-keys: ${{ matrix.ghc-version }}-
4747

48-
- run: |
48+
- if: ${{ github.event.pull_request }}
49+
run: |
4950
cat <<EOF >>cabal.project.local
5051
program-options
5152
ghc-options: -fhpc
@@ -55,8 +56,12 @@ jobs:
5556
- run: cabal test all
5657
- run: cabal haddock all
5758

58-
- run: ./scripts/generate-coverage-comment.sh constrained.tix | tee coverage-report.md
59+
60+
- if: ${{ github.event.pull_request }}
61+
run: ./scripts/generate-coverage-comment.sh constrained.tix | tee coverage-report.md
62+
5963
- name: Upload coverage report
64+
if: ${{ github.event.pull_request }}
6065
uses: actions/upload-artifact@v4
6166
with:
6267
name: constrained-${{matrix.ghc-version}}-coverage

0 commit comments

Comments
 (0)