Skip to main content

GitHub Actions Destination

Trigger a GitHub Actions workflow (workflow_dispatch) per row. Core connector — no extra install.

YAML Example​

destination:
type: github_actions
owner: my-org
repo: my-app
workflow_id: deploy.yml # filename or numeric workflow ID
ref: main # branch/tag to run on
inputs_template: '{"environment": "{{ row.env }}", "version": "{{ row.version }}"}'
auth:
type: bearer
token_env: GITHUB_TOKEN

Configuration​

FieldTypeDefaultDescription
type"github_actions"—Required
ownerstring—Repository owner (org or user). Required
repostring—Repository name. Required
workflow_idstring—Workflow filename (e.g. deploy.yml) or numeric ID. Required
refstring"main"Branch or tag the workflow runs on.
inputs_templatestring | nullnullJinja2 template rendering a JSON object of workflow_dispatch inputs.
authBearerbearerToken auth — set token_env to an env var holding a PAT / fine-grained token.
retryRetryConfig | nullnullPer-destination override of sync.retry.

Authentication​

The workflow must declare a workflow_dispatch trigger. The token needs actions: write on the repo:

export GITHUB_TOKEN="ghp_..." # or a fine-grained token with Actions: read/write
auth:
type: bearer
token_env: GITHUB_TOKEN

Rate limiting​

Vendor limit: 1,000 workflow_dispatch calls per hour per repository. drt caps this destination at 5 req/s — deliberately conservative, since one row equals one workflow run.

The limiter is shared per token, not per repository: GitHub's REST quota is per authenticated user/app across all repositories, so two syncs dispatching workflows into different repos under one token still share one budget.

Override to go lower than the cap:

destination:
type: github_actions
owner: myorg
repo: myrepo
rate_limit:
requests_per_second: 1

destination.rate_limit beats sync.rate_limit, which beats the default of 10/s. When two syncs share a token but request different rates, the lowest wins for both.

Notes​

  • Core connector — no pip install extras needed.
  • One workflow-dispatch call per row; inputs_template keys must match the workflow's declared inputs:.
  • Useful for activation patterns where a warehouse row should kick off a deploy / backfill / notification pipeline.
  • A successful dispatch confirms that GitHub accepted the request, not that the workflow finished. For incremental syncs, use a reconciliation sync when missed downstream work must be recovered.