Create cherry-pick-to-support.yml #2
Workflow file for this run
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: Cherry-pick to support branches | |
on: | |
pull_request: | |
branches: | |
- master | |
types: ["closed"] | |
jobs: | |
cherry_pick_v_5_12: | |
runs-on: ubuntu-latest | |
name: Cherry pick into support/v5.12 | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'cherry-pick-v5.12') && github.event.pull_request.merged == true }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cherry pick into support/v5.12 | |
uses: carloscastrojumo/[email protected] | |
with: | |
branch: support/v5.12 | |
labels: | | |
cherry-pick | |
title: '[cherry-pick] {old_title}' | |
body: 'Cherry picking #{old_pull_request_id} onto this branch' | |
cherry_pick_v_5_13: | |
runs-on: ubuntu-latest | |
name: Cherry pick into support/v5.13 | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'cherry-pick-v5.13') && github.event.pull_request.merged == true }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cherry pick into support/v5.13 | |
uses: carloscastrojumo/[email protected] | |
with: | |
branch: support/v5.13 | |
labels: | | |
cherry-pick | |
title: '[cherry-pick] {old_title}' | |
body: 'Cherry picking #{old_pull_request_id} onto this branch' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |