Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel previous CI run on new pull request push #311

Merged
merged 1 commit into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/android-ci-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
jobs:
build:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.ref }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've used group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} elsewhere, to prevent this from cancelling things more widely than intended.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, let me try this then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cancel-in-progress: true
defaults:
run:
working-directory: platform/android
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
jobs:
build:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
defaults:
run:
working-directory: platform/android
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ios-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ on:
jobs:
build:
runs-on: macos-10.15
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
BUILDTYPE: Debug
HOMEBREW_NO_AUTO_UPDATE: 1
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ on:
jobs:
build:
runs-on: macos-10.15
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
BUILDTYPE: Debug
HOMEBREW_NO_AUTO_UPDATE: 1
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- ubuntu-20.04
- ubuntu-18.04
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
BUILDTYPE: ${{github.ref == 'refs/heads/main' && 'Release' || 'Debug'}}

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/qt-ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ on:
jobs:
build-core:
runs-on: windows-latest
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
strategy:
matrix:
include:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/qt-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
qt: 6.2.2
qt_target: desktop
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
BUILD_TYPE: Debug
BUILD_MODE: ${{ matrix.static }}
Expand Down