Skip to content

Commit

Permalink
Cancel in-progress CI runs when branches are re-pushed (MystenLabs#7568)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark authored Jan 21, 2023
1 parent cc0c5bf commit cc6149c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
# Disable incremental compilation.
Expand Down

0 comments on commit cc6149c

Please sign in to comment.