Skip to content

Rules for locating github actions #27222

Discussion options

You must be logged in to vote
DennisHeimbigner:

Is it possible to have different sets of workflows on different branches? My experiments seem to indicate that only workflows on the master branch are used.

That depends on the event that’s supposed to trigger the workflow, key quote from the documentation (link below):

  1. An event occurs on your repository, and the resulting event has an associated commit SHA and Git ref.
  2. The .github/workflows directory in your repository is searched for workflow files at the associated commit SHA or Git ref. The workflow files must be present in that commit SHA or Git ref to be considered.

If you check the event descriptions on that page the GITHUB_REF describes which branch (or …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants