From 79255f8316972d6ca5d165b4d07ce9436305f0f9 Mon Sep 17 00:00:00 2001 From: Liam Aharon Date: Wed, 22 Nov 2023 12:49:41 +0400 Subject: [PATCH] set concurrency --- .github/workflows/check-migrations.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/check-migrations.yml b/.github/workflows/check-migrations.yml index 7dd3ed004f..7cc421b3a4 100644 --- a/.github/workflows/check-migrations.yml +++ b/.github/workflows/check-migrations.yml @@ -7,6 +7,12 @@ on: branches: ["main"] workflow_dispatch: +# Cancel a currently running workflow from the same PR, branch or tag when a new workflow is +# triggered (ref https://stackoverflow.com/a/72408109) +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: runtime-matrix: runs-on: ubuntu-latest