Trigger CI on one project when there is a commit on a dependency

I have two Julia packages on I have automatic CI configured so that whenever I commit/push to either of them, it triggers a Pkg.test.

Now one of the packages depends on the other. So I would like to trigger a Pkg.test on the dependent package whenever the dependency gets updated.

How can I do this?