trigger_github_action
Trigger a GitHub workflow dispatch event with custom inputs by specifying the repository, workflow ID, and optional parameters like git reference and input data.
Instructions
Trigger a GitHub workflow dispatch event with custom inputs
Input Schema
Name | Required | Description | Default |
---|---|---|---|
inputs | No | Inputs to pass to the workflow (must match the workflow's defined inputs) | |
owner | Yes | Owner of the repository (username or organization) | |
ref | No | The git reference to trigger the workflow on (default: main) | |
repo | Yes | Name of the repository | |
token | No | GitHub personal access token (must have workflow scope) | |
workflow_id | Yes | The ID or filename of the workflow to trigger |
Input Schema (JSON Schema)
{
"properties": {
"inputs": {
"description": "Inputs to pass to the workflow (must match the workflow's defined inputs)",
"type": "object"
},
"owner": {
"description": "Owner of the repository (username or organization)",
"type": "string"
},
"ref": {
"description": "The git reference to trigger the workflow on (default: main)",
"type": "string"
},
"repo": {
"description": "Name of the repository",
"type": "string"
},
"token": {
"description": "GitHub personal access token (must have workflow scope)",
"type": "string"
},
"workflow_id": {
"description": "The ID or filename of the workflow to trigger",
"type": "string"
}
},
"required": [
"owner",
"repo",
"workflow_id"
],
"type": "object"
}