Dispatch a workflow
dispatch_workflowTriggers a Forgejo or Gitea Actions workflow via workflow_dispatch using owner, repo, workflow file, and ref, with optional inputs; requires write access.
Instructions
Trigger an Actions workflow via workflow_dispatch (owner/repo/workflow/ref, optional inputs; requires write mode), on Forgejo or Gitea. workflow is the file name, e.g. ci.yml — discover it by reading .forgejo/workflows, .gitea/workflows or .github/workflows with get_file_contents. The workflow must declare an on: workflow_dispatch trigger. Forgejo returns the created run; Gitea returns only an acknowledgement, so find the run with list_workflow_runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Git ref to run on — a branch or tag, e.g. `main`. | |
| repo | Yes | Repository name. | |
| owner | Yes | Repository owner. | |
| inputs | No | Optional `workflow_dispatch` inputs (key/value), matching the workflow's `inputs:`. | |
| workflow | Yes | Workflow file name as it appears in `.forgejo/workflows/`, `.gitea/workflows/` or `.github/workflows/`, e.g. `ci.yml`. This server exposes no list-workflows tool (Forgejo has no such endpoint) — read the directory with `get_file_contents` if you don't know the name. The workflow must declare an `on: workflow_dispatch` trigger. |