Skip to content

Conversation

BWbwchen
Copy link
Contributor

@BWbwchen BWbwchen commented Jan 5, 2024

Based on the document of github-cherry-pick-action, 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

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.

Signed-off-by: Bo-Wei Chen(BWbwchen) <tim.chenbw@gmail.com>
@BWbwchen BWbwchen changed the title bugfix(CI) Automatically trigger CI for auto-cherry-pick workflow [#1282] bugfix(CI) Automatically trigger CI for auto-cherry-pick workflow Jan 5, 2024
@jerryshao
Copy link
Contributor

I have created a BOT_TOKEN, thanks @BWbwchen

image

@jerryshao jerryshao added need backport Issues that need to backport to another branch branch-0.3 labels Jan 5, 2024
@jerryshao
Copy link
Contributor

@BWbwchen thanks for the contribution, I will merge it to test if it works.

@jerryshao jerryshao merged commit 1888246 into apache:main Jan 5, 2024
github-actions bot pushed a commit that referenced this pull request Jan 5, 2024
…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) <tim.chenbw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need backport Issues that need to backport to another branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug report] The CI cannot be triggered automatically when a backport PR is created by github bot
2 participants