POST
github_actions_create_workflow_dispatch.py
from charter.packs import github
result = await github.actions_create_workflow_dispatch.ainvoke({"owner": ..., "repo": ..., "workflowId": ..., "ref": ...})
Requires
repo, read:user.Path parameters
| Field | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
workflowId * | integer | string | The ID of the workflow. You can also pass the workflow file name as a string, such as ci.yml, which is usually the one you have. |
Body
| Field | Type | Description |
|---|---|---|
ref * | string | The git reference for the workflow. The reference can be a branch or tag name. |
inputs | map of string | integer | number | boolean | Input keys and values configured in the workflow file. The maximum number of properties is 25. Any default properties configured in the workflow file will be used when inputs are omitted. |
returnRunDetails | boolean | Whether the response should include the workflow run ID and URLs. Absent, GitHub answers 204 with no body at all, and the run you just started has to be found by listing runs. |