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
- Open Workflows and click Create workflow, or pick the Deploy on push template.
- Select the Git push (
git-event) step and pick your connected Git account, repository, and push event type. - Add optional branches, tags, or changed paths filters (for example
main,v*, orapps/api/**). - Select the Deploy step and choose the matching application in that repository.
- Enable the workflow and click Save.
- 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_idas a string so repository renames do not break triggers. - Legacy
github-eventmigration: older workflows saved withgithub-eventcontinue running on push; re-saving one in the editor converts it cleanly togit-eventusing 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-eventstep to multipledeploysteps to build staging and preview services simultaneously. - Sequential promotion: chain
deploystep outputs using aconditionorswitchstep so production deploys only after staging succeeds. - Gate behavior: a
failedorskippedupstream step stops its outgoing edges cleanly rather than invoking downstream conditions; downstream steps on active branches can readsuccessful,failed, orskippedstep states.
Current workflow limits
- Trigger event:
pushis the supported trigger event across GitHub, GitLab, Bitbucket, and Azure DevOps. - Deploy strategy field: the workflow
deploystep accepts astrategyfield 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.