Skip to content

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

text
.gitea/restflow/ci.yml

Corrected example

text
.gitea/workflows/ci.yml

Verification. 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

yaml
pull_request: {branches: [feature-one]}

Corrected example

yaml
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

yaml
push: {branches: [main]}

Corrected example

yaml
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

yaml
paths: ["service/**"]

Corrected example

yaml
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

bash
gh workflow run dispatch.yml --ref feature

Corrected example

bash
gh workflow view dispatch.yml && gh workflow run dispatch.yml --ref feature

Verification. 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

yaml
- cron: "0 9 * * 1"

Corrected example

yaml
- 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

yaml
runs-on: ubuntu-latest

Corrected example

yaml
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest

Verification. 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

yaml
pull_request: {paths: ["backend/**"]}

Corrected example

yaml
pull_request: {}

Verification. Use a stable gate with internal change detection and confirm docs-only PRs report.

Correction validation syntax-validated.