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