Skip to content

Commit 059df8b

Browse files
authored
Merge pull request #40 from mlabs-haskell/calum/no-ci-for-drafts
Update workflow to not run build for draft PRs
2 parents 1cd201d + d954032 commit 059df8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ on:
55
branches: [master, staging]
66
pull_request:
77
branches: [master, staging]
8+
types: [opened, reopened, synchronize, ready_for_review]
89
workflow_dispatch:
910

1011
jobs:
1112
build:
1213
runs-on: ubuntu-latest
14+
if: ${{ !github.event.pull_request.draft }}
1315
steps:
1416
- uses: actions/checkout@v2
1517
- uses: cachix/install-nix-action@v13

0 commit comments

Comments
 (0)