Trigger
beginnerDefinition
An event that starts an automated workflow. Instead of running on a schedule, triggered automations respond to something happening: a file being uploaded, a form being submitted, or code being pushed to a repository.
In the wild
A GitHub webhook triggers your deploy pipeline every time someone pushes to the main branch. You don't click 'deploy': the push event triggers it automatically.
More from Automation & Scripting
Cron Job
A task scheduled to run automatically at set times, like a recurring alarm. The schedule is defined in 'cron syntax': a compact format that specifies minutes, hours, days, months, and weekdays. Cron jobs run whether or not anyone is watching.
Dry Run
Running a script or command in preview mode so you can see what it would do without actually doing it. Dry runs are a safety net. They let you verify the plan before committing to changes that might be hard to undo.
Environment Variable
A named value set outside your code that programs can read at runtime. They're used for configuration that changes between environments, like API keys, database URLs, or feature flags, so you don't hardcode secrets into your source code.
Exit Code
A number a program returns when it finishes to signal whether it succeeded or failed. An exit code of 0 means success; any other number means something went wrong. Scripts and pipelines use exit codes to decide whether to continue or stop.
Idempotent
An operation that produces the same result no matter how many times you run it. Idempotent scripts are safe to re-run: if something fails halfway through, you can run the whole script again without creating duplicates or breaking things.
Pipeline
A series of automated steps that data or code flows through, where the output of one step becomes the input of the next. Pipelines ensure tasks happen in the right order and can stop early if a step fails.