Which branch of yml is used in github actions?

Question

The main and dev branches have their own production.yml file and their own develop.yml. Which develop.yml is used in the github action workflow when pushing to the dev branch?

I couldn’t find it by google, but is there any documentation somewhere?

Premise

develop.yml contains a workflow that responds to a push to the dev branch, and production.yml describes a workflow that responds to a push to the main branch.

Deploy the production environment and the development environment to different locations.