Workflow doesn't trigger on some branches

I have a repository and workflow that is configured to do a build whenever there is a push to any branch:

on: [push, pull_request]

And this works fine whenever I make a push to master or a feature branch.

I also have branches prefixed with the string upstream/. I have a local system with a cron job to pull branches from an upstream repo, add this prefix, and then push them up to GitHub.

However, the CI workflow never triggers for these pushes. Why is that? Perhaps workflows do not trigger when a push happens using a read/write deploy credential instead of a user credential?

There is no .github/workflow/ directory on the upstream branches. Workflows for push or pull_request are read from the affected branch, and there aren’t any workflow definitions in the upstream branches.

1 Like