Skip to content

Commit

Permalink
Skip publish action for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
disco-dave authored and disco-dave committed Sep 7, 2024
1 parent 1c7f8ef commit 6354721
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
hlint:
if: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,6 +27,7 @@ jobs:
fail-on: warning

fourmolu:
if: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -35,6 +37,7 @@ jobs:
version: "0.16.2.0"

cabal:
if: true
name: cabal ${{ matrix.cabal }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -56,6 +59,7 @@ jobs:
cabal-version: ${{ matrix.cabal }}

stack:
if: true
name: stack ${{ matrix.stack }} / ${{ matrix.resolver }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -76,6 +80,7 @@ jobs:
stack-version: ${{ matrix.stack }}

publish:
if: github.event_name != "pull_request"
name: "publish"
runs-on: "ubuntu-latest"
needs:
Expand Down

0 comments on commit 6354721

Please sign in to comment.