From e8cdae34dab06917c6a0bfed59466941bd121227 Mon Sep 17 00:00:00 2001 From: Jerry Shao Date: Fri, 2 Aug 2024 18:01:52 +0800 Subject: [PATCH] [MINOR] CI: Add auto cherry-pick to branch-0.6 and remove self token (#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. --- .github/workflows/auto-cherry-pick.yml | 34 ++++++++++++-------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/auto-cherry-pick.yml b/.github/workflows/auto-cherry-pick.yml index 8b919af6026..0a264e83526 100644 --- a/.github/workflows/auto-cherry-pick.yml +++ b/.github/workflows/auto-cherry-pick.yml @@ -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: |