Skip to content

Commit b3abe00

Browse files
committed
Prevent concurrent deployments
GitHub Pages' sites are singletons and therefore we should use the recommended pattern to prevent multiple deployments to run at the same time; Instead, we want to queue them all up. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a29d864 commit b3abe00

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88

99
jobs:
1010
deploy:
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: false
1114
runs-on: ubuntu-latest
1215
permissions:
1316
pages: write # to deploy to GitHub Pages

.github/workflows/update-book.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ jobs:
104104
name: bundle-${{ matrix.language.lang }}
105105
path: ${{ matrix.language.lang }}.bundle
106106
push-updates:
107+
concurrency:
108+
group: "pages"
109+
cancel-in-progress: false
107110
needs: [check-for-updates, update-book]
108111
if: needs.check-for-updates.outputs.matrix != '[""]'
109112
permissions:

.github/workflows/update-download-data.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88

99
jobs:
1010
update-download-data:
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: false
1114
if: github.event.repository.fork == false || github.event_name == 'workflow_dispatch'
1215
runs-on: ubuntu-latest
1316
permissions:

.github/workflows/update-git-version-and-manual-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313

1414
jobs:
1515
update-git-version-and-manual-pages:
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
1619
if: github.event.repository.fork == false || github.event_name == 'workflow_dispatch'
1720
runs-on: ubuntu-latest
1821
permissions:

.github/workflows/update-translated-manual-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313

1414
jobs:
1515
check-for-updates:
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
1619
if: github.event.repository.fork == false || github.event_name == 'workflow_dispatch'
1720
runs-on: ubuntu-latest
1821
steps:

0 commit comments

Comments
 (0)