Update push event: Mention it can trigger non-default branch workflows#44323
Update push event: Mention it can trigger non-default branch workflows#44323mcummings128 wants to merge 1 commit into
Conversation
Note that workflows can be triggered by pushes to non-default branches.
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
|
@mcummings128 We actually already have information about this here: https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#running-your-workflow-only-when-a-push-to-specific-branches-occurs The Actions team would rather link to what we already have than duplicate it here, and I agree. If you want to add a, "For more information about (explain thing here, I don't know that I can summarize accurately), see |
Why:
Closes:
What's being changed (if available, include any code snippets, screenshots, or gifs):
Regarding the
pushevent behavior, adds a note that workflows not merged to the default branch can be triggered by push events. This is useful to call out specifically because there will be times when users need to test a workflow but cannot merge it to the default branch for whatever reason. Having this in official documentation helps users have a reputable, citable source regarding how to trigger a workflow without merging into the default branch--methods to do so are not explicitly mentioned in any documentation I've come acrossThis doesn't have to be in NOTE format specifically, but the content should be there.
See the documentation
Check off the following: