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: