Skip to content

Commit

Permalink
Cancel previous jobs if a new commit is pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 committed May 6, 2024
1 parent fe49bba commit 06c2469
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cocoapods-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06c2469

Please sign in to comment.