PR's closed by bots

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?

1 Like

What kind of bot are you talking about? Code running in an Actions workflow, or something else?

a bot that analyzes PR’s that are stale and closes

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 the GITHUB_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.

@airtower-luna Thanks for the suggestion, I will apply it

1 Like

it seems that creating a pat and using it didn’t work either )=