Skip to content

Commit

Permalink
[MINOR] CI: Add auto cherry-pick to branch-0.6 and remove self token (#…
Browse files Browse the repository at this point in the history
…4341)

### What changes were proposed in this pull request?

This PR proposes to add auto cherry-pick support for branch-0.6, also
removing the self token to use github token to make it work.

### Why are the changes needed?

To support auto cherry-pick for branch-0.6.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Test on Github CI.
  • Loading branch information
jerryshao authored Aug 2, 2024
1 parent c809e80 commit e8cdae3
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/auto-cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,58 +7,56 @@ on:
types: ["closed"]

jobs:
cherry_pick_branch_0_3:
cherry_pick_branch_0_5:
runs-on: ubuntu-latest
name: Cherry pick into branch_0.3
if: ${{ contains(github.event.pull_request.labels.*.name, 'branch-0.3') && github.event.pull_request.merged == true }}
name: Cherry pick into branch_0.5
if: ${{ contains(github.event.pull_request.labels.*.name, 'branch-0.5') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into branch-0.3
- name: Cherry pick into branch-0.5
uses: carloscastrojumo/github-cherry-pick-action@v1.0.9
with:
token: ${{ secrets.BOT_TOKEN }}
branch: branch-0.3
branch: branch-0.5
labels: |
cherry-pick
reviewers: |
jerryshao
cherry_pick_branch_0_4:
cherry_pick_branch_0_6:
runs-on: ubuntu-latest
name: Cherry pick into branch_0.4
if: ${{ contains(github.event.pull_request.labels.*.name, 'branch-0.4') && github.event.pull_request.merged == true }}
name: Cherry pick into branch_0.6
if: ${{ contains(github.event.pull_request.labels.*.name, 'branch-0.6') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into branch-0.4
- name: Cherry pick into branch-0.6
uses: carloscastrojumo/github-cherry-pick-action@v1.0.9
with:
token: ${{ secrets.BOT_TOKEN }}
branch: branch-0.4
branch: branch-0.6
labels: |
cherry-pick
reviewers: |
jerryshao
cherry_pick_branch_0_5:
cherry_pick_branch_0_7:
runs-on: ubuntu-latest
name: Cherry pick into branch_0.5
if: ${{ contains(github.event.pull_request.labels.*.name, 'branch-0.5') && github.event.pull_request.merged == true }}
name: Cherry pick into branch_0.7
if: ${{ contains(github.event.pull_request.labels.*.name, 'branch-0.7') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into branch-0.5
- name: Cherry pick into branch-0.7
uses: carloscastrojumo/github-cherry-pick-action@v1.0.9
with:
token: ${{ secrets.BOT_TOKEN }}
branch: branch-0.5
branch: branch-0.7
labels: |
cherry-pick
reviewers: |
Expand Down

0 comments on commit e8cdae3

Please sign in to comment.