From e81d7dcda891e9ee412902174fdaeee01b23dab8 Mon Sep 17 00:00:00 2001 From: fantonangeli Date: Wed, 17 Apr 2024 15:03:53 +0200 Subject: [PATCH 1/2] Add GH workflow --- .github/workflows/main-sync.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main-sync.yml diff --git a/.github/workflows/main-sync.yml b/.github/workflows/main-sync.yml new file mode 100644 index 0000000000..f07a83fc2d --- /dev/null +++ b/.github/workflows/main-sync.yml @@ -0,0 +1,22 @@ +name: Sync main branch + +env: + GITHUB_TOKEN: ${{ secrets.APACHE_SYNC_MIDSTREAM_TOKEN }} + +on: + schedule: + - cron: '0 1 * * 0' + workflow_dispatch: + +jobs: + sync-main: + name: Sync main branch + runs-on: ubuntu-latest + + steps: + - name: Create a PR to sync main branch with main-apache + uses: kiegroup/kie-ci/.ci/actions/main-sync@main + with: + main_sync_workflow_exclude_paths: ${{ vars.MAIN_SYNC_WORKFLOW_EXCLUDE_PATHS }} + main_sync_workflow_pr_reviewers: ${{ vars.MAIN_SYNC_WORKFLOW_PR_REVIEWERS }} + dry_run: false From 1ebccfc395f021cc194641692e92f7f28e985640 Mon Sep 17 00:00:00 2001 From: fantonangeli Date: Wed, 17 Apr 2024 16:49:58 +0200 Subject: [PATCH 2/2] Fixes comment: https://github.com/kiegroup/kogito-examples/pull/21#discussion_r1568913141 --- .github/workflows/main-sync.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main-sync.yml b/.github/workflows/main-sync.yml index f07a83fc2d..096c437f56 100644 --- a/.github/workflows/main-sync.yml +++ b/.github/workflows/main-sync.yml @@ -19,4 +19,3 @@ jobs: with: main_sync_workflow_exclude_paths: ${{ vars.MAIN_SYNC_WORKFLOW_EXCLUDE_PATHS }} main_sync_workflow_pr_reviewers: ${{ vars.MAIN_SYNC_WORKFLOW_PR_REVIEWERS }} - dry_run: false