Skip to content

Commit 3313ef6

Browse files
SimenB0x61nas
authored andcommitted
chore: automatically cancel superseded Actions runs (#5)
1 parent ca80f12 commit 3313ef6

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

.github/workflows/check.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7+
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
711
name: check
812
jobs:
913
fmt:

.github/workflows/nostd.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7+
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
711
name: no-std
812
jobs:
913
nostd:

.github/workflows/safety.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7+
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
711
name: safety
812
jobs:
913
sanitizers:

.github/workflows/scheduled.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
schedule:
88
- cron: '7 7 * * *'
9+
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
913
name: rolling
1014
jobs:
1115
# https://twitter.com/mycoliza/status/1571295690063753218

.github/workflows/test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7+
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
711
name: test
812
jobs:
913
required:

0 commit comments

Comments
 (0)