CICD-001 · Run on every push
Encyclopedia · Events and triggers · All snippets
1. Where it fits
- Placement .github/workflows/ci.yml, at workflow level, or within jobs for a named job mapping.
- Prerequisites workflow on an example repository with main as default.
- Platforms github-actions, gitea-actions.
2. Copy the snippet
yaml
on: [push]3. How it works
The event list subscribes this workflow to every push it can see. The CI server evaluates the list before it selects a runner.
4. Verify the result
Push a commit and confirm one Actions run is created.
Watch for. Place event filters at workflow scope and test an event that should run and an event that should be skipped.
Validation syntax-validated (YAML parse). Status definitions.