Workflows is a set of YAML files, each consisting one or multiple rules that operate on Notion databases. A workflow file ends with a .yaml
or .yml
extension.
The workflows syntax mimics that of GitHub Actions.
The name of the workflow.
The triggers of the workflow.
It can contain a single event
on: create
or It can contain multiple events
on: [create, update]
Currently, only create
and update
events are supported.
The databases IDs that this workflow targets. Each ID used by Notion is an 32-digit hex number.
It may be one database:
target: <database_id>
or multiple databases:
target:
- <database_id_1>
- <database_id_2>
The actual actions that should run on pages inside of targeted databases.
The unique identifier for a job.
Name of the job.
The conditions under which the job will be run.
The steps that performs on matched Notion page.
The name of the current step.
The if condition for the current step. If the condition is not satisfied, the job will be aborted and the remaining steps will not be executed.
(Optional) Language for run
, should be either bash
or builtin
(default).
The expressions to execute on the matched Notion page. For expressions syntax, refer to here