Skip to content

Commit

Permalink
[#1282] bugfix(CI) Automatically trigger CI for auto-cherry-pick work…
Browse files Browse the repository at this point in the history
…flow (#1337)

Based on the document of
[`github-cherry-pick-action`](https://github.com/marketplace/actions/github-cherry-pick-action#action-inputs),
add token input to change the default token that the auto-cherry-pick
workflow used.

> [!WARNING]  
> Need to add a PAT to the organization with the name `BOT_TOKEN`.

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

Automatically trigger CI for auto-cherry-pick workflow with a customized
token, instead of the default `GITHUB_TOKEN`, which is prohibited from
triggering another workflow.

### Why are the changes needed?

Fix: #1282 

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

No user-facing change, but we should add a PAT to the organization with
the name `BOT_TOKEN`.

### How was this patch tested?

N/A

Signed-off-by: Bo-Wei Chen(BWbwchen) <[email protected]>
  • Loading branch information
BWbwchen authored Jan 5, 2024
1 parent 87461a7 commit 1888246
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/auto-cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- name: Cherry pick into branch-0.1
uses: carloscastrojumo/[email protected]
with:
token: ${{ secrets.BOT_TOKEN }}
branch: branch-0.1
labels: |
cherry-pick
Expand All @@ -36,6 +37,7 @@ jobs:
- name: Cherry pick into branch-0.2
uses: carloscastrojumo/[email protected]
with:
token: ${{ secrets.BOT_TOKEN }}
branch: branch-0.2
labels: |
cherry-pick
Expand All @@ -53,6 +55,7 @@ jobs:
- name: Cherry pick into branch-0.3
uses: carloscastrojumo/[email protected]
with:
token: ${{ secrets.BOT_TOKEN }}
branch: branch-0.3
labels: |
cherry-pick
Expand Down

0 comments on commit 1888246

Please sign in to comment.