From 257db95f2670e146857cc6765ca36e75624d7f2e Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Thu, 30 Mar 2023 17:11:26 +0200 Subject: [PATCH] ci: Cancel previous workflow runs when new commits are pushed Introduces pointless bloat to the CI, and might delay newer runs if a lot of branches are being built. There's no value in finishing the previous runs. --- .github/workflows/test.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f56071356b8..e533cdfa85b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,6 +12,12 @@ on: inputs: release: description: 'Make release' + +# Automatically cancel previous workflow runs when a new commit is pushed. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: RUST_BACKTRACE: 1