Add cherrypick action (#1578)

* Add cherry-pick action.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>

* Add newline.

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
pull/1579/head
Jerome Luckenbach 2021-05-18 21:38:48 +02:00 committed by GitHub
parent 9a261b2056
commit 92b5bb1156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
# Automatically create pull requests to release branches on condition
on:
pull_request:
branches:
- main
types: ["closed"]
jobs:
cherry_pick_release_stable:
runs-on: ubuntu-latest
name: Cherry pick into release-stable
if: contains(github.event.pull_request.labels.*.name, 'release-stable')
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick action
uses: carloscastrojumo/github-cherry-pick-action@v1.0.1
with:
branch: final-stable
labels: |
cherry-pick
cherry_pick_release_v2_5_x:
runs-on: ubuntu-latest
name: Cherry pick into release-v2.5
if: contains(github.event.pull_request.labels.*.name, 'release-v2.5.x')
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick action
uses: carloscastrojumo/github-cherry-pick-action@v1.0.1
with:
branch: final-2.5.x
labels: |
cherry-pick