From 06c246924dd567568111f8931a1b763f36eea873 Mon Sep 17 00:00:00 2001 From: Nikolay Volosatov Date: Mon, 6 May 2024 11:41:04 +0100 Subject: [PATCH] Cancel previous jobs if a new commit is pushed --- .github/workflows/cocoapods-lint.yml | 4 ++++ .github/workflows/unit-tests.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/cocoapods-lint.yml b/.github/workflows/cocoapods-lint.yml index 393746598..095b07107 100644 --- a/.github/workflows/cocoapods-lint.yml +++ b/.github/workflows/cocoapods-lint.yml @@ -3,6 +3,10 @@ name: CocoaPods Lint on: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: lint: runs-on: macos-latest diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 38448c678..5df82b940 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -3,6 +3,10 @@ name: Run Unit Tests on: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: unit-tests: runs-on: macos-latest