Configuring Action Workflows
Action workflows can be configured in your app’s TOML config. For example, to define an HTTP healthcheck:actions/http_healthcheck.toml
actions/<your-action>.toml
Timeout
Each workflow must have a timeout limiting how long it can run. The maxiumum allowed timeout is 30 minutes. Timeouts must be provided as valid Golang time.Duration strings. The example workflow will timeoute after 15 seconds, more than enough time to make a simple HTTP request.Action Triggers
Action triggers are now available for all workflows. You can now use the following set of triggers:pre-provisionpost-provisionpre-reprovisionpost-reprovisionpre-deprovisionpost-deprovisionpre-deploy-all-componentspost-deploy-all-componentspre-teardown-all-componentspost-teardown-all-componentspre-deprovision-sandboxpost-deprovision-sandboxpre-reprovision-sandboxpost-reprovision-sandboxpre-update-inputspost-update-inputspre-secrets-syncpost-secrets-sync
pre-provision or pre-reprovision that include a stack-run,
the trigger will be called right after the runner is healthy.
The following triggers require a component_name field to be set, as they are
tied to a specific component:
pre-deploy-componentpost-deploy-componentpost-teardown-componentpre-teardown-component
actions/<action-name>.toml
Steps
Each step in an action requires a command to be run. You can optionally load a script from a repo and provide env vars to configure the environment the command will run in. The example action is pretty simple, so it has only one step. It loads a curl script from our open-source repo of commonly-used scripts, and sets a few env vars to configure it.actions/<action-name>.toml
Adhoc Actions
Adhoc actions let you run a one-off command or bash script on an install without defining it in your app’s TOML config. This is useful for debugging, running database migrations manually, or any other operational task that doesn’t need a recurring or lifecycle-triggered workflow.Running an Adhoc Action
Navigate to an install in the dashboard and click Manage > Run adhoc action. You’ll beprompted to configure the run:- Name (optional) — a display name shown in workflow history.
- Single Command / Bash Script — choose between a single-line shell command or a multi-line bash script.
- Timeout — execution timeout in seconds (1–3600, default: 300).
- Environment Variables — key/value pairs injected into the execution environment. Values support Go template interpolation (see below).
- Role — the IAM role the runner will assume when executing the action.