From 55a5a4dc94e84d77e25637dc68dc8222c72db403 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Tue, 28 Mar 2023 17:18:58 +0200 Subject: [PATCH] CI: Group by workflow & ref and cancel stale executions This should cancel runs when pushing again to a PR. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9cb6d5..6545f7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,10 @@ on: push: branches: main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: RUST_BACKTRACE: 1 CARGO_INCREMENTAL: 0