ci: use concurrency groups to allow updates to a branch to cancel in progress run of old version of that branch
This commit is contained in:
parent
dd77f79b17
commit
68f867b914
4 changed files with 16 additions and 0 deletions
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
|
|
@ -22,6 +22,10 @@ on:
|
||||||
- '!src/res/**'
|
- '!src/res/**'
|
||||||
- '!src/unittests/**'
|
- '!src/unittests/**'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
codeql:
|
codeql:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
4
.github/workflows/continuous-integration.yml
vendored
4
.github/workflows/continuous-integration.yml
vendored
|
|
@ -11,6 +11,10 @@ on:
|
||||||
- "v*"
|
- "v*"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
GIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
PACKAGE_PREFIX: "deskflow"
|
PACKAGE_PREFIX: "deskflow"
|
||||||
|
|
|
||||||
4
.github/workflows/sonarcloud-analysis.yml
vendored
4
.github/workflows/sonarcloud-analysis.yml
vendored
|
|
@ -23,6 +23,10 @@ on:
|
||||||
- '!src/res/**'
|
- '!src/res/**'
|
||||||
- '!src/unittests/**'
|
- '!src/unittests/**'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sonar:
|
sonar:
|
||||||
# This job would fail for contributors who open PRs as the workflow runs outside of our repo
|
# This job would fail for contributors who open PRs as the workflow runs outside of our repo
|
||||||
|
|
|
||||||
4
.github/workflows/valgrind-analysis.yml
vendored
4
.github/workflows/valgrind-analysis.yml
vendored
|
|
@ -4,6 +4,10 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
valgrind-analysis:
|
valgrind-analysis:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue