1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +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 name: ClusterFuzzLite PR fuzzing
on: on:
workflow_dispatch: workflow_dispatch:
pull_request: pull_request:
paths: 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 permissions: read-all
jobs: jobs:
PR: PR:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -6,6 +6,11 @@ on:
schedule: schedule:
- cron: '14 23 * * *' # every day @ 23:14 - 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: jobs:
crypto_build: crypto_build:
name: Crypto library name: Crypto library

View File

@ -11,6 +11,11 @@ on:
schedule: schedule:
- cron: '15 23 * * *' # every day @ 23:15 - 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: permissions:
id-token: write # for fetching the OIDC token id-token: write # for fetching the OIDC token
contents: read # for actions/checkout contents: read # for actions/checkout

View File

@ -6,6 +6,11 @@ on:
schedule: schedule:
- cron: '35 22 * * *' # every day @ 22:35 - 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: permissions:
id-token: write # for fetching the OIDC token id-token: write # for fetching the OIDC token
contents: read # for actions/checkout contents: read # for actions/checkout

View File

@ -6,6 +6,11 @@ on:
schedule: schedule:
- cron: '13 23 * * *' # every day @ 23:13 - 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: 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). 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).