Skip to content

github-actions bot labeling trigger's not the issue labeled event #25565

Answered by Yanjingzhu
korti11 asked this question in Actions
Discussion options

You must be logged in to vote

Hi korti11,

This is an expected behavior. There is a limitation of workflow: An action in a workflow run can’t trigger a new workflow run. You can see this prompt in https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#about-workflow-events.

When you use GITHUB_TOKEN in your actions, all of the interactions with the repository are on behalf of the Github-actions bot. The operations act by Github-actions bot

cannot trigger a new workflow.

I would suggest you use your own PAT when add labels to an issue.

Store your PAT in secrets and use ${{ secrets.PAT } in your actions.

Then you can see it is you who added a label in the issue. Thi…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants