Skip to content

Commit 9bbfd94

Browse files
feat(ci): add concurrency control to cancel stale builds
Cancel in-progress workflow runs when a newer one is triggered on the same ref. This prevents wasting CI resources on outdated builds and ensures only the latest code is built and deployed. Concurrency group: workflow name + git ref (branch/tag) Behavior: Automatically cancels older runs when new one starts
1 parent 38a5843 commit 9bbfd94

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/build-ios-app.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
# Manual trigger for testing
77
workflow_dispatch:
88

9+
# Cancel in-progress builds when a newer one is triggered
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
build:
1116
runs-on: macos-latest

0 commit comments

Comments
 (0)