CodexBloom - Programming Q&A Platform

GitHub Actions not triggering on push to specific branch despite correct configuration

👀 Views: 40 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-13
github github-actions ci-cd YAML

I'm performance testing and I'm stuck trying to I'm working with an scenario where my GitHub Actions workflow is not triggering on a push to my `main` branch... I have the following YAML configuration in my `.github/workflows/ci.yml`: ```yaml name: CI on: push: branches: - main jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Run tests run: npm test ``` I have verified that my branch is indeed named `main` and not `master`. I also tried to manually trigger the workflow by pushing a change, but I still see no activity under the 'Actions' tab in my repository. To troubleshoot, I: - Checked the GitHub Actions settings in the repository settings and confirmed that actions are enabled. - Confirmed that I have push permissions for the repository. - Attempted to execute a simple push to the `main` branch using `git commit -m 'test' && git push origin main`, which succeeded without errors. However, no workflows appear to be initiated. I also found this behavior in the Actions logs: `No workflows found for the event push to the branch main.` Is there something I might be missing in the configuration or any common pitfalls that could prevent the workflow from triggering? Any guidance would be appreciated! This issue appeared after updating to Yaml latest. This is happening in both development and production on Debian. How would you solve this?