Global links checker v/5.0 (#1388) #370
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Forwardport changes | |
on: | |
push: | |
branches: | |
- v/5.0 | |
jobs: | |
backport: | |
strategy: | |
matrix: | |
branch: ['main'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
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 forwardport label | |
id: check_pr_labels | |
uses: shioyang/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
labels: '["forwardport"]' | |
- name: See result | |
run: echo "${{ steps.check_pr_labels.outputs.result }}" | |
- name: Checkout 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 |