Skip to content

Commit 3d6ecb1

Browse files
committed
ci(github): add concurrency settings to prevent multiple builds for the same PR
1 parent 9275cad commit 3d6ecb1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/pr-builder.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
- "LICENSE"
1111
workflow_dispatch:
1212

13+
# Avoid running multiple builds for the same PR.
14+
concurrency:
15+
group: pr-builder-${{ github.ref }}
16+
cancel-in-progress: true
17+
1318
env:
1419
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1520

@@ -118,7 +123,7 @@ jobs:
118123
- name: 🧩 Install Dependencies
119124
id: install-dependencies
120125
run: pnpm install
121-
126+
122127
- name: 🏗️ Build
123128
id: build
124129
run: pnpm build
@@ -170,7 +175,7 @@ jobs:
170175
- name: 🧩 Install Dependencies
171176
id: install-dependencies
172177
run: pnpm install
173-
178+
174179
- name: 🏗️ Build
175180
id: build
176181
run: pnpm build

0 commit comments

Comments
 (0)