Skip to main content
Before you start, set up Trunk CI for GitHub Actions and store your organization’s API token from Settings → Organization → General as a repository secret named TRUNK_API_TOKEN.

Add the filter job to the top of your workflow

List every job you want to gate under outputs. Check out first, with full history, so the action can read the changed files.

Gate your jobs on it

Gate on != 'false', never on == 'true'. A job with no verdict has no output, and != 'false' makes it run.
Use each job’s key from jobs:, not its display name:.
A job can ask about itself by passing its own key in job-keys, and skip its own steps. It saves less, because the runner has already started.

Next

Turn on enforcement once the recommendations look right. For how Dynamic CI behaves in a merge queue, see Merge queues.