trigger_workflow
Trigger a GitHub Actions workflow run by specifying the repository owner, repo name, workflow ID, and ref (branch, tag, or SHA). Supports custom input parameters for the workflow.
Instructions
Trigger a workflow run
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | Input parameters for the workflow | |
| owner | Yes | Repository owner (username or organization) | |
| ref | Yes | The reference of the workflow run (branch, tag, or SHA) | |
| repo | Yes | Repository name | |
| workflowId | Yes | The ID of the workflow or filename |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"inputs": {
"additionalProperties": {
"type": "string"
},
"description": "Input parameters for the workflow",
"type": "object"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"ref": {
"description": "The reference of the workflow run (branch, tag, or SHA)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
},
"workflowId": {
"description": "The ID of the workflow or filename",
"type": [
"string",
"number"
]
}
},
"required": [
"owner",
"repo",
"workflowId",
"ref"
],
"type": "object"
}