Skip to content

Commit

Permalink
CI: Cancel in-progress jobs for the same PR/push ref
Browse files Browse the repository at this point in the history
  • Loading branch information
tadfisher committed Oct 17, 2023
1 parent b283c74 commit 375c8b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
matrix:
cabal: ["3.10"]
ghc: ["8.8.4", "8.10.7", "9.0.2", "9.2.8", "9.4.6", "9.6.3"]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.cabal }}-${{matrix.ghc}}
cancel-in-progress: true
env:
CONFIG: "--enable-tests"
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- ghc92
- ghc94
- ghc96
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.ghc }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v19
Expand Down

0 comments on commit 375c8b4

Please sign in to comment.