Skip to content

Clarify CP Leadership Priority option (#1168) #645

Clarify CP Leadership Priority option (#1168)

Clarify CP Leadership Priority option (#1168) #645

Workflow file for this run

name: Backport changes to all maintenance branches
on:
push:
branches:
- main
jobs:
backport:
strategy:
matrix:
branch: ['v/5.0', 'v/5.1', 'v/5.2', 'v/5.3', 'v/5.4']
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/[email protected]
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 to all versions"]'
- 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