Action on repo creation

Is it possible to define a trigger when creating a repo?

I have been checking trigger workflow page, but I couldn’t find it. Or at least its not clear.

Thanks,
Daniel

Well, you first need to add a workflow file to a repository before it can get triggered, which means that the repository must be created before you can add a workflow. Hence, the answer is no.

However, there is a webhook type repository that can have the action value of created. Maybe that is an option for you?

https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository