Overview
Gitea Actions provides a powerful CI/CD system integrated directly into your repositories. The Actions API allows you to programmatically manage workflows, runs, jobs, runners, secrets, variables, and artifacts.Workflows
List Repository Workflows
Get all workflows defined in a repository.Owner of the repository
Name of the repository
Get Workflow
Retrieve details about a specific workflow.Workflow identifier (filename or ID)
Enable/Disable Workflow
Enable or disable a workflow from running.Dispatch Workflow
Manually trigger a workflow run with custom inputs.Git reference (branch, tag, or commit SHA) to run workflow on
Input parameters defined in workflow dispatch configuration
Return workflow run ID and URLs in response
Workflow Runs
List Workflow Runs
List all workflow runs for a repository with optional filters.Filter by workflow event (push, pull_request, schedule, workflow_dispatch)
Filter by branch name
Filter by status: pending, queued, in_progress, failure, success, skipped
Filter by username who triggered the run
Filter by commit SHA that triggered the run
Get Workflow Run
Get details about a specific workflow run.Workflow run ID
Rerun Workflow
Rerun an entire workflow run or a specific job.Delete Workflow Run
Delete a completed workflow run and its associated data.Jobs
List Workflow Jobs
List all jobs in a workflow run.Get Job
Get details about a specific job.Download Job Logs
Download the log output from a job.Runners
List Runners
List all runners available to a repository.Get Runner
Get details about a specific runner.Delete Runner
Remove a runner from the repository.Create Registration Token
Generate a token to register a new runner.Registration token for runner setup
Token expiration time
Secrets
List Secrets
List all action secrets (without exposing values).Create or Update Secret
Create a new secret or update an existing one.Name of the secret (uppercase with underscores recommended)
Base64-encoded secret value
Description of what the secret is used for
Delete Secret
Delete a secret from the repository.Variables
List Variables
List all action variables.Get Variable
Get a specific variable by name.Create Variable
Create a new variable.Variable value
Description of the variable
Update Variable
Update an existing variable.Delete Variable
Delete a variable.Artifacts
List Artifacts
List all artifacts for a repository or specific run.Filter artifacts by name
Get Artifact
Get details about a specific artifact.Download Artifact
Download an artifact as a zip file.The download endpoint returns a redirect (302) to the actual artifact storage location.
Delete Artifact
Delete an artifact.Admin Endpoints
Administrators can access system-wide actions data.List All Jobs
List All Runs
Status Values
Workflow runs and jobs can have the following status values:- pending: Waiting to be queued
- queued: Queued for execution
- in_progress: Currently running
- success: Completed successfully
- failure: Failed with errors
- skipped: Skipped due to conditions
- cancelled: Manually cancelled