Skip to content

Commit bc04171

Browse files
committed
Only run haskell.yml when PR is not a draft
1 parent b86b731 commit bc04171

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/haskell.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ permissions:
1212
jobs:
1313
generate-matrix:
1414
name: "Generate matrix from cabal"
15+
if: ( ( github.event_name == 'push' )
16+
|| ( github.event_name == 'pull_request'
17+
&& github.event.pull_request.draft == false
18+
)
19+
)
1520
outputs:
1621
matrix: ${{ steps.set-matrix.outputs.matrix }}
1722
runs-on: ubuntu-latest
@@ -25,7 +30,11 @@ jobs:
2530
version: 0.1.7.1
2631

2732
test:
28-
33+
if: ( ( github.event_name == 'push' )
34+
|| ( github.event_name == 'pull_request'
35+
&& github.event.pull_request.draft == false
36+
)
37+
)
2938
name: ${{ matrix.ghc }} on ${{ matrix.os }}
3039
needs: generate-matrix
3140
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)