Skip to content

Commit b1e6efc

Browse files
committed
sync-upstream-branches: configure the workflow via vars.CONFIG
The grand idea to use GitGitGadget for projects other than Git is to allow configuring it via a custom JSON that is stored as a repository variable. Let's do this. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 3c327fc commit b1e6efc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/sync-upstream-branches.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
spec:
20-
- sourceRepo: j6t/git-gui
21-
targetRepo: gitgitgadget/git
22-
targetRefNamespace: git-gui/
23-
- sourceRepo: gitster/git
24-
targetRepo: gitgitgadget/git
25-
sourceRefRegex: "^refs/heads/(maint-\\d|[a-z][a-z]/)"
19+
spec: ${{ fromJSON(vars.CONFIG).syncUpstreamBranches }}
2620

2721
steps:
2822
- name: check which refs need to be synchronized

0 commit comments

Comments
 (0)