Skip to content

Commit

Permalink
feat(ci): Add concurrency group for rust workflow (#806)
Browse files Browse the repository at this point in the history
feat(ci): Add concurreny group for rust workflow
  • Loading branch information
phated authored Feb 11, 2023
1 parent a6e70c9 commit 1b80f55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b80f55

Please sign in to comment.