I’m sure there’s a bit of documentation I’m not finding…
Must workflows (
.github/workflows/my_workflow.yml) be defined _and_ committed on master for them to work?
The case I’m thinking about here is having a slightly different workflow on master and say a release-x.y branch. If I start with a workflow on master, and later edit it on the release branch, what will get used? The version on master or the version on the release branch? The way the UI is structured suggests the answer is “the version on master”, but I cannot find a piece of documentation that says this.
On the same line, if I open a PR that modifes the workflow and the target branch is master, what will run? The unmodified version already on master or the modified version in the PR? If the former, how do I test that the change in the workflow is not breaking the workflow?