Workflows and automation

Configure Git push workflows across branches, tags, changed paths, and conditional deployment targets.

Formatio workflows automate deployments from repository push events. Each workflow is a directed acyclic graph of named steps evaluated in order: a Git push step matches refs and changed files, optional condition or switch steps branch execution, and deploy steps build and release target applications.

[!NOTE] Every repository-backed application includes an option to create a default deploy-on-push workflow at creation time. Create custom workflows when you need monorepo path filters, tag releases, or multi-environment promotion graphs.

Create a deploy-on-push workflow

  1. Open Workflows and click Create workflow, or pick the Deploy on push template.
  2. Select the Git push (git-event) step and pick your connected Git account, repository, and push event type.
  3. Add optional branches, tags, or changed paths filters (for example main, v*, or apps/api/**).
  4. Select the Deploy step and choose the matching application in that repository.
  5. Enable the workflow and click Save.
  6. Push a matching commit and follow the build log on the application's Deployments tab.

Saving a workflow activates it for future pushes without replaying past webhook deliveries. Trigger Deploy on the application page to release the current revision immediately.

Repository and organization boundaries

  • Single-organization scope: the Git connection and target applications must belong to the same Formatio organization and repository.
  • Persistent repository IDs: Formatio records both the connection UUID and the upstream provider's repository_id as a string so repository renames do not break triggers.
  • Legacy github-event migration: older workflows saved with github-event continue running on push; re-saving one in the editor converts it cleanly to git-event using the migrated connection.

Branches, tags, and changed-path globs

Filter combination Which push events run
No branch, tag, or path filters All branch and tag pushes
Branches only Matching branch pushes; tag pushes are skipped
Tags only Matching tag pushes; branch pushes are skipped
Both branches and tags Pushes matching the filter for their pushed ref kind
Changed paths At least one reported changed file must match

Use glob patterns such as main, release/*, v*, and apps/api/**. Prefix an exclusion pattern with ! and place exclusions after the inclusions they narrow (last matching pattern wins). When a provider omits changed-file metadata on a push, Formatio treats the path filter as permissive rather than silently skipping a deployment.

Multi-target graphs and conditional branching

  • Parallel targets: connect a single git-event step to multiple deploy steps to build staging and preview services simultaneously.
  • Sequential promotion: chain deploy step outputs using a condition or switch step so production deploys only after staging succeeds.
  • Gate behavior: a failed or skipped upstream step stops its outgoing edges cleanly rather than invoking downstream conditions; downstream steps on active branches can read successful, failed, or skipped step states.

Current workflow limits

  • Trigger event: push is the supported trigger event across GitHub, GitLab, Bitbucket, and Azure DevOps.
  • Deploy strategy field: the workflow deploy step accepts a strategy field in YAML for compatibility, but the deployment runner always performs Formatio's standard rolling health-checked rollout.

See Workflow reference for the complete YAML schema, provider-specific webhook nuances, expressions, and operator syntax.