Skip to content

Commit 268b11b

Browse files
Prevent multiple ongoing workflow runs for same PR
1 parent ebac504 commit 268b11b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/pr-builder.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
name: PR Builder
1+
name: PR Builder - Asgardeo Docs
22

33
on:
44
pull_request:
55
paths:
66
- 'en/asgardeo/**'
77
- 'en/includes/**'
88

9+
# Avoid running multiple builds for the same PR.
10+
concurrency:
11+
group: pr-builder-${{ github.ref }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
broken-link-checker:
1116
runs-on: ubuntu-latest
@@ -26,7 +31,6 @@ jobs:
2631
python -m pip install --upgrade pip
2732
pip install -r en/asgardeo/requirements.txt
2833
29-
# Step 3: Start MkDocs server in the background and run the broken link checker
3034
- name: Start MkDocs server and run broken link checker
3135
run: |
3236
cd en/asgardeo

0 commit comments

Comments
 (0)