chore: automatically cancel superseded Actions runs (#5)

This commit is contained in:
Simen Bekkhus 2023-04-08 18:57:54 +02:00 committed by GitHub
parent 80a89195f2
commit 16a2c2925e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 0 deletions

View file

@ -4,6 +4,10 @@ on:
push: push:
branches: [main] branches: [main]
pull_request: 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 name: check
jobs: jobs:
fmt: fmt:

View file

@ -4,6 +4,10 @@ on:
push: push:
branches: [main] branches: [main]
pull_request: 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 name: no-std
jobs: jobs:
nostd: nostd:

View file

@ -4,6 +4,10 @@ on:
push: push:
branches: [main] branches: [main]
pull_request: 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 name: safety
jobs: jobs:
sanitizers: sanitizers:

View file

@ -6,6 +6,10 @@ on:
pull_request: pull_request:
schedule: schedule:
- cron: '7 7 * * *' - 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 name: rolling
jobs: jobs:
# https://twitter.com/mycoliza/status/1571295690063753218 # https://twitter.com/mycoliza/status/1571295690063753218

View file

@ -4,6 +4,10 @@ on:
push: push:
branches: [main] branches: [main]
pull_request: 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 name: test
jobs: jobs:
required: required: