From 00edcaf08f6d08818270015b7c061f0a45beca51 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Sun, 28 Jul 2024 22:47:33 -0500 Subject: [PATCH] Prepare CI for new minor branch 1.2.0 --- ...dispatcher.yml => ci-dispatcher-1.0.x.yml} | 0 .github/workflows/ci-dispatcher-1.1.x.yml | 25 +++++++++++++++++++ .github/workflows/ci-pr.yml | 1 + .github/workflows/ci.yml | 2 ++ 4 files changed, 28 insertions(+) rename .github/workflows/{ci-dispatcher.yml => ci-dispatcher-1.0.x.yml} (100%) create mode 100644 .github/workflows/ci-dispatcher-1.1.x.yml diff --git a/.github/workflows/ci-dispatcher.yml b/.github/workflows/ci-dispatcher-1.0.x.yml similarity index 100% rename from .github/workflows/ci-dispatcher.yml rename to .github/workflows/ci-dispatcher-1.0.x.yml diff --git a/.github/workflows/ci-dispatcher-1.1.x.yml b/.github/workflows/ci-dispatcher-1.1.x.yml new file mode 100644 index 00000000..cec8a0a9 --- /dev/null +++ b/.github/workflows/ci-dispatcher-1.1.x.yml @@ -0,0 +1,25 @@ +name: CI Dispatcher (1.1.x) + +on: + schedule: + - cron: '0 11 * * */2' # Once every other day at 11am UTC + workflow_dispatch: + +jobs: + dispatch_ci_workflow: + name: Dispatch CI workflow + if: github.repository == 'spring-projects/spring-pulsar' + strategy: + matrix: + # List of active maintenance branches. + branch: [ 1.1.x ] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Dispatch + env: + GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} + run: gh workflow run ci.yml -r ${{ matrix.branch }} diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 731ec501..85d6f877 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -4,6 +4,7 @@ on: pull_request: branches: - 'main' + - '1.1.x' - '1.0.x' paths-ignore: - '.github/**' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bbd9bee..ecd3e837 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: push: branches: - 'main' + - '1.1.x' + - '1.0.x' paths-ignore: - '.github/**' schedule: