Interview Prep/GitHub Actions/Triggers & Events

Can a workflow trigger on changes to a specific file in another repository?

IntermediateConceptTriggers & Events
Answer

No, triggers only fire on events of the repo that holds the workflow. Options: the other repo fires repository_dispatch (or workflow_dispatch) at yours with a token that has access; a scheduled poll that checks a version; or Dependabot/Renovate opening PRs when the dependency changes. Within an org, a reusable workflow in a central repo is called by consumers, which is the reverse direction.

All GitHub Actions questions Roadmap: GitHub Actions

More on Triggers & Events