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