From 5c936bc63cc3adcf9d43c9c4ce69053566089ad9 Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Fri, 24 Feb 2023 14:04:22 +0000 Subject: [PATCH] feat(ci): add concurrency group for rust workflow (#63) --- .github/workflows/rust.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8cb4c22a..146e2473 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,6 +2,11 @@ name: Rust on: [push, pull_request] +# This will cancel previous runs when a branch or PR is updated +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + jobs: check_n_test: name: cargo check & test