Skip to content

Commit

Permalink
sync-gitster-git-branches: limit concurrency
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dscho committed Aug 23, 2023
1 parent 1fabadb commit 525752b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/sync-gitster-git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 525752b

Please sign in to comment.