Skip to content

Commit 525752b

Browse files
committed
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 <[email protected]>
1 parent 1fabadb commit 525752b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/sync-gitster-git.yml

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ env:
99
SOURCE_REPOSITORY: gitster/git
1010
TARGET_REPOSITORY: gitgitgadget/git
1111

12+
# We want to limit queuing to a single workflow run i.e. if there is already
13+
# an active workflow run and a queued one, queue another one canceling the
14+
# already queued one.
15+
concurrency:
16+
group: ${{ github.workflow }}
17+
1218
jobs:
1319
sync-gitster-git-branches:
1420
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)