Skip to content

Commit

Permalink
Cancel ongoing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jneira authored and mergify-bot committed Feb 24, 2022
1 parent 38b6729 commit 7c72187
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Bootstrap

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
push:
branches:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Linux

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
push:
branches:
Expand Down Expand Up @@ -123,7 +128,7 @@ jobs:
- uses: actions/checkout@v2

- uses: haskell/actions/setup@v1
id: setup-haskell
id: setup-haskell-extra
with:
ghc-version: ${{ matrix.extra-ghc }}
cabal-version: latest # default, keeping for visibility
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: MacOS

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
push:
branches:
Expand Down Expand Up @@ -111,4 +116,3 @@ jobs:
- name: Validate cli-suite
if: matrix.cli == true
run: sh validate.sh -j 2 -w ghc-${{ matrix.ghc }} -v ${{ matrix.flags }} -s cli-suite

5 changes: 5 additions & 0 deletions .github/workflows/quick-jobs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Quick jobs

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
push:
branches:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/users-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

name: Users guide

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
push:
branches:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Windows

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
push:
branches:
Expand Down

0 comments on commit 7c72187

Please sign in to comment.