-
Notifications
You must be signed in to change notification settings - Fork 23
41 lines (39 loc) · 1.38 KB
/
cherry-pick.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
pull_request:
branches:
- main
types: ["closed"]
permissions: write-all
jobs:
cherry_pick_release_0_1_x:
runs-on: ubuntu-latest
name: Cherry pick into release/0.1.x
if: ${{ contains(github.event.pull_request.labels.*.name, 'release/0.1.x') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into release/0.1.x
uses: carloscastrojumo/github-cherry-pick-action@v1.0.1
with:
branch: release/0.1.x
labels: |
cherry-pick
cherry_pick_release_0_2_x:
runs-on: ubuntu-latest
name: Cherry pick into release/0.2.x
if: ${{ contains(github.event.pull_request.labels.*.name, 'release/0.2.x') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into release/0.2.x
uses: carloscastrojumo/github-cherry-pick-action@v1.0.1
with:
branch: release/0.2.x
labels: |
cherry-pick
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}