Gitea · Arazzo Workflow

Gitea Sync Mirror And Confirm Branch

Version 1.0.0

Confirm a repository is a mirror, trigger a sync, and verify a branch.

1 workflow 1 source API 1 provider
View Spec View on GitHub GitSource ControlDevOpsCI/CDCode HostingOpen-SourceSelf-HostedPackage RegistryIssue TrackingPull RequestsArazzoWorkflows

Provider

gitea

Workflows

mirror-sync
Confirm a repo is a mirror, sync it, and verify a branch.
Reads the repository to confirm it is a mirror, triggers a mirror-sync, then looks up a branch and retries until it is returned.
3 steps inputs: authToken, branch, owner, repo outputs: commitId, isMirror
1
getRepo
Read the repository to confirm it is a mirror before syncing.
2
syncMirror
Trigger a mirror-sync to pull the latest from upstream.
3
verifyBranch
Look up the branch and retry until it is returned after the sync.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Gitea Sync Mirror And Confirm Branch
  summary: Confirm a repository is a mirror, trigger a sync, and verify a branch.
  description: >-
    Refreshes a mirrored repository on Gitea and confirms the result. The
    workflow reads the repository to confirm it is a mirror, triggers a
    mirror-sync to pull the latest from upstream, and then verifies a branch is
    present after the sync. Each step spells out its request inline so the flow
    can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: repositoryApi
  url: ../openapi/gitea-repository-api-openapi.yml
  type: openapi
workflows:
- workflowId: mirror-sync
  summary: Confirm a repo is a mirror, sync it, and verify a branch.
  description: >-
    Reads the repository to confirm it is a mirror, triggers a mirror-sync, then
    looks up a branch and retries until it is returned.
  inputs:
    type: object
    required:
    - authToken
    - owner
    - repo
    - branch
    properties:
      authToken:
        type: string
        description: Authorization header value, e.g. "token <personal-access-token>".
      owner:
        type: string
        description: Owner of the repository.
      repo:
        type: string
        description: Name of the mirrored repository.
      branch:
        type: string
        description: Branch to verify is present after the sync.
  steps:
  - stepId: getRepo
    description: Read the repository to confirm it is a mirror before syncing.
    operationId: repoGet
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authToken
    - name: owner
      in: path
      value: $inputs.owner
    - name: repo
      in: path
      value: $inputs.repo
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      isMirror: $response.body#/mirror
    onSuccess:
    - name: repoIsMirror
      type: goto
      stepId: syncMirror
      criteria:
      - context: $response.body
        condition: $.mirror == true
        type: jsonpath
    - name: notAMirror
      type: end
      criteria:
      - context: $response.body
        condition: $.mirror == false
        type: jsonpath
  - stepId: syncMirror
    description: Trigger a mirror-sync to pull the latest from upstream.
    operationId: repoMirrorSync
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authToken
    - name: owner
      in: path
      value: $inputs.owner
    - name: repo
      in: path
      value: $inputs.repo
    successCriteria:
    - condition: $statusCode == 200
  - stepId: verifyBranch
    description: Look up the branch and retry until it is returned after the sync.
    operationId: repoGetBranch
    parameters:
    - name: Authorization
      in: header
      value: $inputs.authToken
    - name: owner
      in: path
      value: $inputs.owner
    - name: repo
      in: path
      value: $inputs.repo
    - name: branch
      in: path
      value: $inputs.branch
    successCriteria:
    - condition: $statusCode == 200
    onFailure:
    - name: retryBranchLookup
      type: retry
      retryAfter: 3
      retryLimit: 5
      stepId: verifyBranch
    outputs:
      commitId: $response.body#/commit/id
  outputs:
    isMirror: $steps.getRepo.outputs.isMirror
    commitId: $steps.verifyBranch.outputs.commitId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/gitea-mirror-sync-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.