From e0e306f40986a597dd38c4417515dbf892579e1e Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Wed, 24 Jul 2024 07:17:35 +0100 Subject: [PATCH] Cancel running GitHub actions when new commit pushed to PR (#6101) --- .github/workflows/backend.yaml | 4 ++++ .github/workflows/frontend.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/backend.yaml b/.github/workflows/backend.yaml index 39daaa44e0..381624579d 100644 --- a/.github/workflows/backend.yaml +++ b/.github/workflows/backend.yaml @@ -6,6 +6,10 @@ on: name: Backend linting and unit tests +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: fmt: name: run fmt diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml index 1446bb03aa..fa46846a2a 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/frontend.yaml @@ -7,6 +7,10 @@ on: name: Frontend linting, type check & unit tests +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: install-and-test: runs-on: ubuntu-latest