Skip to content

Commit

Permalink
Updating Pull Requests should cancel previous runs (#432)
Browse files Browse the repository at this point in the history
When iterating on PRs sometimes we queue up a large number of test runs.
We only really care about the last of these, so arrange for later runs
to cancel any run in progress using the technique outlined in
https://stackoverflow.com/a/72408109
  • Loading branch information
theospears authored Jan 28, 2024
1 parent 19a7dac commit 54e2c5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/fastlane-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Fastlane Tests
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: macos-13
Expand Down

0 comments on commit 54e2c5f

Please sign in to comment.