workflow-dispatch
workflow-dispatch copied to clipboard
Allow specifying workflow by path
Previously, workflow-dispatch only allows specifying the workflow by ID (as returned by the API) or by name (as specified in the YAML). Specifying by ID is problematic because the ID is auto-generated by Github, so we don't know what the ID is before we push, and the ID can differ per repository fork. Specifying by name (in the YAML) is also problematic because the until you've pushed this workflow to the main branch, Github doesn't read its name, and thus workflow-dispatch fails to find a workflow with that name.
This pull request allows specifying a workflow by path. This always works even when introducing a workflow for the first time in a branch.
Closes #18.
This is great, can you post a few examples of what the workflow path would look like?
It's in the docs. Example: .github/workflows/ci.yml
@benc-uk is there a reason we can get some of these PRs merged? :)
Fixed in v1.2 and master