From 8068a2bbc3fb0315920740122931e55eba1a6920 Mon Sep 17 00:00:00 2001 From: Bert Date: Wed, 1 Nov 2023 11:33:48 -0400 Subject: [PATCH] ci: cancel in progress runs on new push (#620) --- .github/workflows/node.yml | 4 ++++ .github/workflows/python.yml | 5 +++++ .github/workflows/rust.yml | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index b03a93ae..011533a6 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -11,6 +11,10 @@ on: - .github/workflows/node.yml - docker-compose.yml +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: # Disable full debug symbol generation to speed up CI build and keep memory down # "1" means line tables only, which is useful for panic tracebacks. diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index ad3031a2..0906dfb3 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -8,6 +8,11 @@ on: paths: - python/** - .github/workflows/python.yml + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: linux: timeout-minutes: 30 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0d21cf2e..9f86033e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,6 +10,10 @@ on: - rust/** - .github/workflows/rust.yml +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: # This env var is used by Swatinem/rust-cache@v2 for the cache # key, so we set it to make sure it is always consistent.