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.
More on Triggers & Events
How do you trigger a workflow on pushes to `main` and on PRs that target `main`?BeginnerWhat activity types does `pull_request` trigger on by default, and how do you add more?IntermediateHow do `branches` and `branches-ignore` filters work with globs?BeginnerHow do path filters work, and what are their limits?AdvancedHow do you trigger only on version tags, and what is the gotcha with pushing many tags?IntermediateWhat is `workflow_dispatch`, and what input types does it support?Beginner