Sync main branch #61
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync main branch | |
| on: | |
| schedule: | |
| - cron: '0 1 * * 0' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: sync-main | |
| cancel-in-progress: true | |
| jobs: | |
| sync-main: | |
| if: github.repository_owner == 'kiegroup' | |
| name: Sync main branch | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Merge local branch with upstream/main (no commit) | |
| id: merge_upstream_main | |
| uses: kiegroup/kie-ci/.ci/actions/main-sync/merge@main | |
| with: | |
| exclude_paths: ${{ vars.MAIN_SYNC_WORKFLOW_EXCLUDE_PATHS }} | |
| upstream_remote: ${{ vars.UPSTREAM_URL }} | |
| github_token: ${{ secrets.APACHE_SYNC_MIDSTREAM_TOKEN }} | |
| - name: Create a PR to sync main branch with upstream/main | |
| uses: kiegroup/kie-ci/.ci/actions/main-sync/create-pr@main | |
| with: | |
| pr_reviewers: ${{ vars.MAIN_SYNC_WORKFLOW_PR_REVIEWERS }} | |
| sync_branch: ${{ steps.merge_upstream_main.outputs.sync_branch }} | |
| github_token: ${{ secrets.APACHE_SYNC_MIDSTREAM_TOKEN }} |