Skip to content

Commit

Permalink
ci: cancel previous workflow run after pushing new code to PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Nov 12, 2024
1 parent dd770ba commit 2e7459f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cflite.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: ClusterFuzzLite PR fuzzing

on:
workflow_dispatch:
pull_request:
paths:
- '**'

# cancel any previous runs on the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions: read-all

jobs:
PR:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
schedule:
- cron: '14 23 * * *' # every day @ 23:14

# cancel any previous runs on the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
crypto_build:
name: Crypto library
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
schedule:
- cron: '15 23 * * *' # every day @ 23:15

# cancel any previous runs on the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
id-token: write # for fetching the OIDC token
contents: read # for actions/checkout
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
schedule:
- cron: '35 22 * * *' # every day @ 22:35

# cancel any previous runs on the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
id-token: write # for fetching the OIDC token
contents: read # for actions/checkout
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
schedule:
- cron: '13 23 * * *' # every day @ 23:13

# cancel any previous runs on the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
CARGOLOCK_COMMENT: Looks like you changed `Cargo.lock`. Please make sure to review the dependencies and update [internal version list](https://www.notion.so/satoshilabs/Rust-dependencies-a9cc6e8dab934def8eb27896c001e6e2).

Expand Down

0 comments on commit 2e7459f

Please sign in to comment.