PR's closed by bots #26305
-
Hello everyone! When a PR is closed through a bot for example, it doesn’t run the workflow, any ideas on how to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
What kind of bot are you talking about? Code running in an Actions workflow, or something else? |
Beta Was this translation helpful? Give feedback.
-
a bot that analyzes PR’s that are stale and closes
Actions · actions/staleMarks issues and pull requests that have not had recent interaction - Actions · actions/stale |
Beta Was this translation helpful? Give feedback.
-
That’s an action, which will appear as the Actions bot in the log because by default it uses the If you want to trigger workflows, you need to create a PAT, store that as a secret, and provide it to the action that closes the PRs. |
Beta Was this translation helpful? Give feedback.
-
@airtower-luna Thanks for the suggestion, I will apply it |
Beta Was this translation helpful? Give feedback.
-
it seems that creating a pat and using it didn’t work either )= |
Beta Was this translation helpful? Give feedback.
That’s an action, which will appear as the Actions bot in the log because by default it uses the
GITHUB_TOKEN
for authorization. And any activity authorized by theGITHUB_TOKEN
won’t trigger further workflows, as documented.If you want to trigger workflows, you need to create a PAT, store that as a secret, and provide it to the action that closes the PRs.