From 3d2ee241a13736109f8a202adbd83c1c90a4f673 Mon Sep 17 00:00:00 2001 From: Jack Green Date: Thu, 14 Nov 2024 07:28:29 +0000 Subject: [PATCH] Merge changes from https://github.com/hazelcast/hazelcast-platform-operator-docs/pull/265 --- .github/workflows/backport-starting-v511.yml | 38 ++++---------------- 1 file changed, 7 insertions(+), 31 deletions(-) diff --git a/.github/workflows/backport-starting-v511.yml b/.github/workflows/backport-starting-v511.yml index bac975d0..e413f3e8 100644 --- a/.github/workflows/backport-starting-v511.yml +++ b/.github/workflows/backport-starting-v511.yml @@ -4,37 +4,13 @@ on: branches: - main jobs: - backport: + backport-to-specified-branch: strategy: + fail-fast: true matrix: branch: ['v/5.11','v/5.12','v/5.13','v/5.14'] - runs-on: ubuntu-latest - steps: - - - name: checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up git config - run: | - git config user.name "GitHub Actions Bot" - git config user.email "<>" - - - name: Check PR for backport label - id: check_pr_labels - uses: shioyang/check-pr-labels-on-push-action@v1.0.12 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - labels: '["backport starting from 5.11"]' - - - name: See result - run: echo "${{ steps.check_pr_labels.outputs.result }}" - - - name: Checkout maintenance branch and cherry-pick - if: ${{ steps.check_pr_labels.outputs.result == 'true' }} - run: | - git fetch - git checkout ${{ matrix.branch }} - git cherry-pick -x --strategy=recursive -X theirs $GITHUB_SHA - git push + uses: hazelcast/hz-docs/.github/workflows/backport-workflow.yml@main + with: + label: '["backport starting from 5.11"]' + target-branch: v/${{ matrix.branch }} + secrets: inherit