Triggers and event filters
Encyclopedia home · Search machine-readable catalog
The broken snippets are deliberate negative examples. Use only in an isolated fixture repository or lab.
F011
Gitea workflow stored in random folder
Symptom. no run appears after push.
Root cause. Gitea scans a designated workflow path.
Broken example
.gitea/restflow/ci.ymlCorrected example
.gitea/workflows/ci.ymlVerification. Push a benign commit and check Actions.
Correction validation untested.
F012
PR branch filter targets the wrong ref
Symptom. opening feature-one into main creates no run.
Root cause. The filter matches the PR base ref.
Broken example
pull_request: {branches: [feature-one]}Corrected example
pull_request: {branches: [main]}Verification. Open a PR targeting main and compare run event.
Correction validation syntax-validated.
F013
Push branch selected but release tag expected
Symptom. release workflow absent after tag push.
Root cause. Tag pushes use a separate tag filter.
Broken example
push: {branches: [main]}Corrected example
push: {tags: ["v*"]}Verification. Use a harmless v0.0.1-lab tag.
Correction validation syntax-validated.
F014
One path filter ignores shared dependencies
Symptom. shared changes arrive without CI.
Root cause. Changed files skip the narrow workflow.
Broken example
paths: ["service/**"]Corrected example
paths: ["service/**", "uv.lock", "shared/**"]Verification. Change uv.lock on a sample branch.
Correction validation syntax-validated.
F015
Manual workflow only exists on a feature branch
Symptom. 404 or missing Run workflow button.
Root cause. Workflow discovery for manual dispatch requires a default-branch workflow.
Broken example
gh workflow run dispatch.yml --ref featureCorrected example
gh workflow view dispatch.yml && gh workflow run dispatch.yml --ref featureVerification. Merge the declared trigger to default branch and dispatch to feature.
Correction validation syntax-validated.
F016
Scheduled time assumed local
Symptom. job starts an hour later than intended in UK summer.
Root cause. Schedule is UTC unless a supported timezone is explicitly configured.
Broken example
- cron: "0 9 * * 1"Corrected example
- cron: "0 8 * * 1"Verification. Compare schedule run timestamps in UTC and account for seasonal changes.
Correction validation syntax-validated.
F017
Workflow chain runs on upstream failure
Symptom. publish runs after a failed verification.
Root cause. completed is distinct from successful.
Broken example
runs-on: ubuntu-latestCorrected example
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latestVerification. Simulate a failed upstream test and confirm publishing is skipped.
Correction validation syntax-validated.
F018
Required check never reports after path filtering
Symptom. required check stays pending.
Root cause. A workflow-level path filter can suppress the required workflow entirely.
Broken example
pull_request: {paths: ["backend/**"]}Corrected example
pull_request: {}Verification. Use a stable gate with internal change detection and confirm docs-only PRs report.
Correction validation syntax-validated.