Skip to content

"repository_dispatch" event shows wrong GITHUB.SHA and GITHUB.REF information #1494

Closed
@ba32107

Description

@ba32107

What article on docs.github.com is affected?

https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#repository_dispatch

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

The GITHUB_SHA and GITHUB_REF values seem to be wrong. As far as I can tell, there's no way to set a branch when triggering this event from the REST API. This presumption is also confirmed by the fact that the event has the following note:

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

These values should both refer to the default branch. An example of what it should say:
https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#check_run

Additional information

I believe this was a copy-paste error from the workflow_dispatch event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions