From 95ffbd5bd3404e8e29ddf9cebb490af038aca0b2 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Mon, 11 Sep 2023 19:58:31 -0600 Subject: [PATCH] Add support for canceling other jobs --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eb83f1d..01b7fdb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,9 @@ jobs: shellcheck: name: Run shellcheck runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true steps: - name: Checkout to branch @@ -23,6 +26,9 @@ jobs: test: name: Test setup-postgresql runs-on: ${{ matrix.platform }} + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true strategy: fail-fast: false matrix: