Use concurrency

Use concurrency in GitHub workflows to cancel in-progress or pending
runs for the same ref.
This commit is contained in:
Florian Albrechtskirchinger 2022-07-26 17:18:03 +02:00
parent 2d48a4d9c5
commit f33192c8e9
No known key found for this signature in database
GPG Key ID: 19618CE9B2D4BE6D
4 changed files with 16 additions and 0 deletions

View File

@ -11,6 +11,10 @@ on:
- cron: '0 19 * * 1'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
CodeQL-Build:

View File

@ -9,6 +9,10 @@ on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
xcode_1:
runs-on: macos-10.15

View File

@ -9,6 +9,10 @@ on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
ci_test_clang:
runs-on: ubuntu-latest

View File

@ -9,6 +9,10 @@ on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
mingw:
runs-on: windows-latest