diff --git a/.github/workflows/android-check.yaml b/.github/workflows/android-check.yaml index 58ed9200de..c7fa540fe5 100644 --- a/.github/workflows/android-check.yaml +++ b/.github/workflows/android-check.yaml @@ -25,6 +25,11 @@ on: - track_generator/** - xcode/** +# Cancels previous jobs if the same branch or PR was updated again. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: lint: name: Android Lint diff --git a/.github/workflows/ios-check.yaml b/.github/workflows/ios-check.yaml index d20bc3d58c..0814e7fa11 100644 --- a/.github/workflows/ios-check.yaml +++ b/.github/workflows/ios-check.yaml @@ -24,6 +24,11 @@ on: - tools/** - track_generator/** +# Cancels previous jobs if the same branch or PR was updated again. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: ios-check: name: Build iOS diff --git a/.github/workflows/linux-check.yaml b/.github/workflows/linux-check.yaml index e9dea31be2..2a1b53f567 100644 --- a/.github/workflows/linux-check.yaml +++ b/.github/workflows/linux-check.yaml @@ -22,6 +22,11 @@ on: - '!tools/python/SiblingKiller.py' - xcode/** +# Cancels previous jobs if the same branch or PR was updated again. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: linux-no-unity: name: Linux no unity build diff --git a/.github/workflows/macos-check.yaml b/.github/workflows/macos-check.yaml index 3bd9c93236..902555c7f2 100644 --- a/.github/workflows/macos-check.yaml +++ b/.github/workflows/macos-check.yaml @@ -22,6 +22,11 @@ on: - '!tools/python/SiblingKiller.py' - xcode/** +# Cancels previous jobs if the same branch or PR was updated again. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: macos-matrix: name: macOS builds and tests