Skip to content

documentation on on.workflow_dispatch is not correct/complete #34884

@tomsit-ionos

Description

@tomsit-ionos

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#repository_dispatch

This event will only trigger a workflow run if the workflow file is on the default branch.

Note that this text is defined on 1 place ({% data reusables.actions.workflow-dispatch %}) and used in several places.
It might be that it is correct in some use cases.

What part(s) of the article would you like to see updated?

it is possible to run WFs via workflow-dispatch event on branches other than the default (thru the API, maybe not UI)
there are some ramifications though

  • the WF must have run at least once, otherwise GH doesnt seem to know it's name
  • i do this via GH CLI by also adding an on.push while on a feature branch

see

Additional information

cli/cli#5268

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionsThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions