Skip to content

Commit 83b2794

Browse files
committed
automatically cancel CI when new commits are pushed to a PR
1 parent 6bb20fc commit 83b2794

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/workspace.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ env:
1616
RUSTFLAGS: "-Dwarnings"
1717
RUSTDOCFLAGS: "-Dwarnings"
1818

19+
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR. Ensures that
20+
# we don't waste CI time, and returns results quicker https://github.com/jonhoo/rust-ci-conf/pull/5
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
23+
cancel-in-progress: true
24+
1925
jobs:
2026
clippy:
2127
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)