ci: Cleanup for disabled Merge Queue / merge_group (#23187)

Only run actions dependency-review-action if running in a PR action.

This broke when run as part of action for commit on main and on a
preview branch:
- https://github.com/zed-industries/zed/actions/runs/12793068921/job/35664998296
- https://github.com/zed-industries/zed/actions/runs/12793045639

Originally introduced in:
- https://github.com/zed-industries/zed/pull/21424

But was only tested with `merge_group` which has since been reverted.
61db8beea4Peter Tripp committed on 1/15/2025, 5:27:16 PM· committed by GitHubparent72f1b32
2 files changedLine totals unavailable