Skip to content

Commit

Permalink
Only one instance of each workflow at a time (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
joka921 authored Jun 7, 2023
1 parent 0f803c9 commit df93d56
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
branches: [ master ]
merge_group:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build:
env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches: [ master ]
merge_group:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/native-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches: [ master ]
merge_group:

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
build:
# The CMake configure and build commands are platform-agnostic and should work equally
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/upload-sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ on:
types:
- completed

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.workflow_run.pull_requests[0].url || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
upload:
runs-on: ubuntu-22.04
# Only run on successful pull requests. Merge commits to master upload
# their coverage reports directly inside `code-coverage.yml`
# TODO<joka921> Also make this work for pushes to the master branch!
if: github.event.workflow_run.conclusion == 'success'
env:
compiler: clang
Expand Down

0 comments on commit df93d56

Please sign in to comment.