From b698dd52a6ad0bd057cc7904b26ffa8ff31f5aac Mon Sep 17 00:00:00 2001 From: Remi Cattiau Date: Sun, 8 Oct 2023 08:57:46 -0700 Subject: [PATCH] ci: auto cancel actions on repush --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32cef1c82..08dcdea83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,10 @@ on: # The branches below must be a subset of the branches above branches: [main] +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + jobs: test: # Cannot rely on Github Azure hosted action because of GCP connection