Skip to the content
Forge

Templates, schedules and triggers

Templates

A template is a saved run spec in a project, with a name and optionally parameters: values you choose each time you start it, such as a target environment. The spec refers to them as ${params.NAME}.

Every change to a template makes a new version. Versions never change, and each run records the version it came from. An organization can share templates with all its projects.

Schedules

A schedule starts a template's latest version on a timetable: a cron expression such as 0 3 * * * (every night at three) in your time zone, or every so many minutes. It runs as a service account of the project, never as the person who made it, and says what to do when the last run is still going: start another, skip, or replace it.

Triggers

A trigger is anything that starts a run or a flow:

  • By hand, in the console or with the command line.
  • The API, from your own tools.
  • A schedule.
  • Git: a push, a tag or a merge request in a linked repository starts a template, or a run file or flow file in the repository itself. Forge reports the result back on the commit.

Git triggers choose which branches, tags and changed files they react to.