Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit b69bd2a

Browse files
authored
Merge pull request #243 from protocol/clean-concurrency
Replace concurrency setup with max-parallel=1 strategy in copy-workflow
2 parents 79b0229 + 0bc58c8 commit b69bd2a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/copy-workflow.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ on:
1414
targets:
1515
description: "List of repositories to deploy to"
1616
required: true
17-
concurrency_group:
18-
description: "Concurrency Group"
19-
required: true
2017

2118
jobs:
2219
copy:
@@ -25,7 +22,7 @@ jobs:
2522
fail-fast: false
2623
matrix:
2724
cfg: ${{ fromJson(github.event.inputs.targets) }}
28-
concurrency: copy-${{ github.event.inputs.concurrency_group }}
25+
max-parallel: 1
2926
env:
3027
TARGET_REPO_DIR: "target-repo"
3128
TEMPLATE_REPO_DIR: "template-repo"

.github/workflows/dispatch.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88

99
env:
1010
# Number of repositories in a batch.
11-
# Deployment jobs in the same batch use the same concurrency group,
12-
# and are therefore run sequentially.
11+
# Deployment jobs in the same batch are run sequentially.
1312
# With ~180 repos, this means we'll run around 9 instances of the copy workflow in parallel.
1413
# This is (hopefully) sufficient to prevent us from triggering GitHub Action's abuse detection mechanism.
1514
MAX_REPOS_PER_WORKFLOW: 20
@@ -52,4 +51,4 @@ jobs:
5251
with:
5352
workflow: "Deploy" # "name" attribute of copy-workflow.yml
5453
token: ${{ secrets.WEB3BOT_GITHUB_TOKEN }}
55-
inputs: '{ "head_commit_url": ${{ toJson(github.event.head_commit.url) }}, "files": ${{ toJson(env.FILES) }}, "targets": ${{ toJson(toJson(matrix.cfg.value)) }}, "concurrency_group": "${{ matrix.cfg.key }}" }'
54+
inputs: '{ "head_commit_url": ${{ toJson(github.event.head_commit.url) }}, "files": ${{ toJson(env.FILES) }}, "targets": ${{ toJson(toJson(matrix.cfg.value)) }} }'

0 commit comments

Comments
 (0)