Skip to content

Commit

Permalink
cancel in-progress workflows when new commit arrives
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Jun 18, 2024
1 parent 72c28ee commit 46cacb7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/cmake-mingw-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build-mingw64:
strategy:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/cmake-multi-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:
pull_request:
branches: [ "main" ]


concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cmake-multi-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true


jobs:
build:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cmake-multi-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ "main" ]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 46cacb7

Please sign in to comment.