How can I run the labeler workflow only when a folder is added?

I’m using the Labeler workflow in one of my forked repositories.
I want it to add some labels, but only when a folder is being added in the root directory.

Is this possible? If so, how can it be implemented?
Thank you in advance! :slightly_smiling_face:

David Leal.

:wave: Hey @Panquesito7,

When setting up the labeler action, you can specify which paths to match in your .github/labeler.yml file.

For example, if you want to add the label label1 when a folder in the root is added, you’d use something like:

- */

See GitHub - actions/labeler: An action for automatically labelling pull requests for more examples.