From 7c72187608c1d02a4f5df21ecf8dcc08a7a11b2e Mon Sep 17 00:00:00 2001 From: jneira Date: Mon, 21 Feb 2022 09:11:43 +0100 Subject: [PATCH] Cancel ongoing workflows --- .github/workflows/bootstrap.yml | 5 +++++ .github/workflows/linux.yml | 7 ++++++- .github/workflows/macos.yml | 6 +++++- .github/workflows/quick-jobs.yml | 5 +++++ .github/workflows/users-guide.yml | 5 +++++ .github/workflows/windows.yml | 5 +++++ 6 files changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index 62afaba3d5f..bcec1642505 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -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: diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d4db782dffe..09327547e12 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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: @@ -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 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index f3819f6ba9d..9a4c41f7984 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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: @@ -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 - diff --git a/.github/workflows/quick-jobs.yml b/.github/workflows/quick-jobs.yml index a34d4f01386..09decc369a7 100644 --- a/.github/workflows/quick-jobs.yml +++ b/.github/workflows/quick-jobs.yml @@ -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: diff --git a/.github/workflows/users-guide.yml b/.github/workflows/users-guide.yml index fe960f1b6ca..b5aac8796f5 100644 --- a/.github/workflows/users-guide.yml +++ b/.github/workflows/users-guide.yml @@ -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: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ad208042ab8..0314ed107b6 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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: