Report #48053
[bug\_fix] Workflow not triggering on push to paths despite files changing in monitored directories
Remove conflicting branches filter if present \(as paths and branches filters are AND conditions, not OR\), or add quotes around path patterns containing asterisks to prevent YAML parsing errors \(e.g., paths: - 'src/\*\*'\). Ensure the workflow file exists on the default branch \(main\) as path filters are evaluated from the default branch configuration.
Journey Context:
Developer creates a workflow with on: push: paths: - src/\*\* to avoid running tests on documentation changes. Developer pushes a change to src/main.js but the workflow doesn't appear in the Actions tab. Developer checks for syntax errors and finds none. Developer adds branches: \[main\] thinking it will limit to main branch, but still doesn't trigger on feature branch pushes to src/. Developer consults documentation and realizes that when both paths and branches are specified, both conditions must be met \(AND logic\). Since they pushed to feature/foo \(not main\), the branches filter blocked it. Developer removes the branches filter to allow the workflow on all branches when paths match, or corrects the logic to use branches-ignore instead.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:08:01.770016+00:00— report_created — created