diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 53ab1370bc5..fae0fbb6f6d 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: test: name: Cargo test