From b3abe0015bd59f17a6e2d6bf1d47738bf6dc167f Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 11 Oct 2024 17:09:38 +0200 Subject: [PATCH] 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 --- .github/workflows/deploy.yml | 3 +++ .github/workflows/update-book.yml | 3 +++ .github/workflows/update-download-data.yml | 3 +++ .github/workflows/update-git-version-and-manual-pages.yml | 3 +++ .github/workflows/update-translated-manual-pages.yml | 3 +++ 5 files changed, 15 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 32ba851ada..02bdb826af 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,9 @@ on: jobs: deploy: + concurrency: + group: "pages" + cancel-in-progress: false runs-on: ubuntu-latest permissions: pages: write # to deploy to GitHub Pages diff --git a/.github/workflows/update-book.yml b/.github/workflows/update-book.yml index 6dd5169159..d19283e82a 100644 --- a/.github/workflows/update-book.yml +++ b/.github/workflows/update-book.yml @@ -104,6 +104,9 @@ jobs: name: bundle-${{ matrix.language.lang }} path: ${{ matrix.language.lang }}.bundle push-updates: + concurrency: + group: "pages" + cancel-in-progress: false needs: [check-for-updates, update-book] if: needs.check-for-updates.outputs.matrix != '[""]' permissions: diff --git a/.github/workflows/update-download-data.yml b/.github/workflows/update-download-data.yml index f434e7f257..d19be8d9cd 100644 --- a/.github/workflows/update-download-data.yml +++ b/.github/workflows/update-download-data.yml @@ -8,6 +8,9 @@ on: jobs: update-download-data: + concurrency: + group: "pages" + cancel-in-progress: false if: github.event.repository.fork == false || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest permissions: diff --git a/.github/workflows/update-git-version-and-manual-pages.yml b/.github/workflows/update-git-version-and-manual-pages.yml index 597e6b63ca..051eae2112 100644 --- a/.github/workflows/update-git-version-and-manual-pages.yml +++ b/.github/workflows/update-git-version-and-manual-pages.yml @@ -13,6 +13,9 @@ on: jobs: update-git-version-and-manual-pages: + concurrency: + group: "pages" + cancel-in-progress: false if: github.event.repository.fork == false || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest permissions: diff --git a/.github/workflows/update-translated-manual-pages.yml b/.github/workflows/update-translated-manual-pages.yml index 0c16174018..678ccfe037 100644 --- a/.github/workflows/update-translated-manual-pages.yml +++ b/.github/workflows/update-translated-manual-pages.yml @@ -13,6 +13,9 @@ on: jobs: check-for-updates: + concurrency: + group: "pages" + cancel-in-progress: false if: github.event.repository.fork == false || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: