File tree Expand file tree Collapse file tree 2 files changed +21
-28
lines changed
Expand file tree Collapse file tree 2 files changed +21
-28
lines changed Original file line number Diff line number Diff line change 11name : Sync main branch
22
3- env :
4- GITHUB_TOKEN : ${{ secrets.APACHE_SYNC_MIDSTREAM_TOKEN }}
5-
63on :
74 schedule :
85 - cron : ' 0 1 * * 0'
96 workflow_dispatch :
107
8+ permissions :
9+ contents : write
10+ pull-requests : write
11+
12+ concurrency :
13+ group : sync-main
14+ cancel-in-progress : true
15+
1116jobs :
1217 sync-main :
1318 if : github.repository_owner == 'kiegroup'
1419 name : Sync main branch
1520 runs-on : ubuntu-latest
1621
1722 steps :
18- - name : Create a PR to sync main branch with main-apache
19- uses : kiegroup/kie-ci/.ci/actions/main-sync@main
23+ - name : Merge local branch with upstream/main (no commit)
24+ id : merge_upstream_main
25+ uses : kiegroup/kie-ci/.ci/actions/main-sync/merge@main
26+ with :
27+ exclude_paths : ${{ vars.MAIN_SYNC_WORKFLOW_EXCLUDE_PATHS }}
28+ upstream_remote : ${{ vars.UPSTREAM_URL }}
29+ github_token : ${{ secrets.APACHE_SYNC_MIDSTREAM_TOKEN }}
30+
31+ - name : Create a PR to sync main branch with upstream/main
32+ uses : kiegroup/kie-ci/.ci/actions/main-sync/create-pr@main
2033 with :
21- main_sync_workflow_exclude_paths : ${{ vars.MAIN_SYNC_WORKFLOW_EXCLUDE_PATHS }}
22- main_sync_workflow_pr_reviewers : ${{ vars.MAIN_SYNC_WORKFLOW_PR_REVIEWERS }}
34+ pr_reviewers : ${{ vars.MAIN_SYNC_WORKFLOW_PR_REVIEWERS }}
35+ sync_branch : ${{ steps.merge_upstream_main.outputs.sync_branch }}
36+ github_token : ${{ secrets.APACHE_SYNC_MIDSTREAM_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments