Skip to content

Commit

Permalink
chore: automatically cancel superseded Actions runs (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 8, 2023
1 parent 80a8919 commit 16a2c29
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check.yml
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [main]
pull_request:
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: check
jobs:
fmt:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nostd.yml
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [main]
pull_request:
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: no-std
jobs:
nostd:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/safety.yml
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [main]
pull_request:
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: safety
jobs:
sanitizers:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/scheduled.yml
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
schedule:
- cron: '7 7 * * *'
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: rolling
jobs:
# https://twitter.com/mycoliza/status/1571295690063753218
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [main]
pull_request:
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: test
jobs:
required:
Expand Down

0 comments on commit 16a2c29

Please sign in to comment.