From e81d7dcda891e9ee412902174fdaeee01b23dab8 Mon Sep 17 00:00:00 2001 From: fantonangeli Date: Wed, 17 Apr 2024 15:03:53 +0200 Subject: [PATCH] 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