Skip to content

Commit 806cd96

Browse files
committed
build(all): add concurrency to github actions
1 parent e5691bb commit 806cd96

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/on-merge-to-main.yml

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
workflow_dispatch: {}
77
jobs:
88
publish:
9+
#########################
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` (#365)
12+
#########################
13+
concurrency:
14+
group: on-merge-to-main
915
runs-on: ubuntu-latest
1016
steps:
1117
- name: "Checkout"

.github/workflows/on-release-prod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
# This is to prevent "race-condition" in publishing a new version of doc to `gh-pages` (#365)
99
#########################
1010
concurrency:
11-
group: on-release-publish
11+
group: release
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: "Checkout"

.github/workflows/run-e2e-tests.yml

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
33
workflow_dispatch: {}
44
jobs:
55
run:
6+
#########################
7+
# Force Github action to run only a single job at a time (based on the group name)
8+
# This is to prevent "race-condition" in building e2e tests infrastructure
9+
#########################
10+
concurrency:
11+
group: e2e-tests
612
runs-on: ubuntu-latest
713
permissions:
814
id-token: write # needed to interact with GitHub's OIDC Token endpoint.

0 commit comments

Comments
 (0)