Triggers a GitHub Actions workflow run via a workflow_dispatch event. The target workflow must have a workflow_dispatch trigger configured. GitHub returns HTTP 204 No Content on success.
For authentication setup, see GitHub workflow run actions.
The following inputs are available for this action.
Input | Type | Description | Example |
|---|---|---|---|
token | String | Required. GitHub Personal Access Token stored as a secret. Fine-grained PATs require Actions: write permission. Classic PATs require repo scope. |
|
owner | String | Required. The account owner of the repository (user or organization login). Case-insensitive. |
|
repo | String | Required. Repository name without the .git suffix. Case-insensitive. |
|
workflowId | String | Required. The workflow file name or numeric workflow ID. |
|
ref | String | Required. The git reference (branch or tag) to run the workflow on. Must exist in the repository. |
|
inputs | Map | Optional. Key-value input parameters defined in the workflow's |
|
selectors | List | Optional. JQ selectors to extract values from the response. |
|
This action returns the following outputs.
Output | Type | Example |
|---|---|---|
response | Object | |
success | Boolean |
|
errorMessage | String | Contains the GitHub API error response body. Common errors: 404 (repo or workflow not found), 422 (ref does not exist or |
Workflow example |
|---|
|