Closed
Description
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
According to the docs, POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
accepts a commit hash as reference:
Name | Type | In | Description |
---|---|---|---|
ref | string | body | Required. The reference of the workflow run. The reference can be a branch, tag, or a commit SHA. |
This isn't the case:
{
"message": "No ref found for: {hash}",
"documentation_url": "https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event"
}
Only branch and tag names are accepted. Or is there an undocumented key or syntax for the value to reference a commit hash?
Additional information
https://github.saobby.my.eu.orgmunity/t/workflow-dispatch-cant-set-ref-to-commit-sha/138132