1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

ci: cancel previous workflow run after pushing new code to PR

This commit is contained in:
Martin Milata 2024-11-11 17:02:58 +01:00
parent dd770ba715
commit 2e7459f54c
5 changed files with 28 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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).