Skip to content

Commit

Permalink
Merge changes from #265
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPGreen authored Nov 14, 2024
1 parent 7f1ba34 commit 3d2ee24
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions .github/workflows/backport-starting-v511.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

0 comments on commit 3d2ee24

Please sign in to comment.