Debugging GitHub Actions#
When a GitHub Actions workflow fails or does not behave as expected, the problem falls into a few predictable categories. This guide covers each one with the diagnostic steps and fixes.
Workflow Not Triggering#
The most common GitHub Actions “bug” is a workflow that never runs.
Check the event and branch filter. A push trigger with branches: [main] will not fire for pushes to feature/xyz. A pull_request trigger fires for the PR’s head branch, not the base branch: