From 525752bcc9da74030615cb60e7efde55285b4af4 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 19 Aug 2023 03:47:26 +0200 Subject: [PATCH] sync-gitster-git-branches: limit concurrency It does not make sense to try synchronizing in parallel. I considered adding `cancel-in-progress: true`, but that strikes me as wasteful: if we're already pushing an update, canceling it would require the entire work to be done again, while chances are that any queued run will likely find that everything is already up to date and no further work needs to be done. Signed-off-by: Johannes Schindelin --- .github/workflows/sync-gitster-git.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/sync-gitster-git.yml b/.github/workflows/sync-gitster-git.yml index 65b6c21..c9850b8 100644 --- a/.github/workflows/sync-gitster-git.yml +++ b/.github/workflows/sync-gitster-git.yml @@ -9,6 +9,12 @@ env: SOURCE_REPOSITORY: gitster/git TARGET_REPOSITORY: gitgitgadget/git +# We want to limit queuing to a single workflow run i.e. if there is already +# an active workflow run and a queued one, queue another one canceling the +# already queued one. +concurrency: + group: ${{ github.workflow }} + jobs: sync-gitster-git-branches: runs-on: ubuntu-latest