-
Notifications
You must be signed in to change notification settings - Fork 362
34 lines (32 loc) · 1.01 KB
/
cherrypick.yaml
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
name: Cherry pick
on:
pull_request:
branches:
- main
types: ["closed"]
permissions:
contents: read
jobs:
cherry_pick_release_v1_0:
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-22.04
name: Cherry pick into release-v1.0
if: ${{ contains(github.event.pull_request.labels.*.name, 'cherrypick/release-v1.0') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
with:
fetch-depth: 0
- name: Cherry pick into release/v1.0
uses: carloscastrojumo/github-cherry-pick-action@503773289f4a459069c832dc628826685b75b4b3 # v1.0.10
with:
branch: release/v1.0
title: "[release/v1.0] {old_title}"
body: "Cherry picking #{old_pull_request_id} onto release/v1.0"
labels: |
cherrypick/release-v1.0
# put release manager here
reviewers: |
Xunzhuo