-
Notifications
You must be signed in to change notification settings - Fork 60.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actions: Workflow dispatch API does not accept SHA commit hash as ref #590
Comments
Thanks for the issue @Simran-B! I'll send this over to the ecosystem team to look at 👀 |
@janiceilene also it looks like it doesn’t accept PR refs like |
Thanks for opening this, @Simran-B! I'll try and confirm with the engineering team that the docs are incorrect and this isn't a product bug. |
Ok, confirmed that SHA functionality is not implemented in the API at the moment. Because the source for the API docs is in a separate internal repo, I'll open a fix that will fix this issue. 🚀 |
Thanks all! This fix is now live 🚀 |
FYI, I've opened a discussion about this, since this fix only concerns the documentation, not the missing feature itself. |
What article on docs.github.com is affected?
https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#create-a-workflow-dispatch-event
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:This isn't the case:
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
The text was updated successfully, but these errors were encountered: