Skip to content

Commit

Permalink
ci: runs will now cancel on new push (#131)
Browse files Browse the repository at this point in the history
With exception to the release and develop branches runs will now auto-cancel when new pushes appear
  • Loading branch information
JessyDL authored May 28, 2024
1 parent e44b857 commit cce6207
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: macos

on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !(startsWith(github.ref, 'release/') || github.ref == 'develop')}}

jobs:
build:
strategy:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: ubuntu

on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !(startsWith(github.ref, 'release/') || github.ref == 'develop')}}

jobs:
# verify the project's formatting, errors out if a difference is detected and generates a patch
# the user should apply to fix it.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: windows

on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !(startsWith(github.ref, 'release/') || github.ref == 'develop')}}

jobs:
build:
strategy:
Expand Down

0 comments on commit cce6207

Please sign in to comment.