Skip to content

Commit cbc6227

Browse files
authored
Merge pull request #132 from heitorlessa/chore/github-concurrency-docs
chore(ci): enable concurrency group for docs workflow
2 parents bb63e04 + 4c7daf5 commit cbc6227

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
jobs:
99
docs:
10+
# Force Github action to run only a single job at a time (based on the group name)
11+
# This is to prevent "race-condition" in publishing a new version of doc to `gh-pages`
12+
concurrency:
13+
group: on-docs-build
1014
runs-on: ubuntu-latest
1115
steps:
1216
- uses: actions/checkout@v3
@@ -29,6 +33,10 @@ jobs:
2933
github_token: ${{ secrets.GITHUB_TOKEN }}
3034
publish_dir: ./dist
3135
apidocs:
36+
# Force Github action to run only a single job at a time (based on the group name)
37+
# This is to prevent "race-condition" in publishing a new version of doc to `gh-pages`
38+
concurrency:
39+
group: on-docs-build
3240
runs-on: macos-latest
3341
steps:
3442
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)