How to run job if any of its dependencies runs?

Hello!

I’m having .gitlab-ci.yml like following:

job1:
  rules:
    - if: <some condition>
      changes:
        - dir1/**/*

job2:
  needs:
    - job: job1
      optional: true
  rules:
    - if: <some condition>
      changes:
        - dir2/**/*

So, when some files get changed in dir1, job1 runs, and when something changes in dir2, job2 runs. And job2 depends on job1. Question is, can I make job2 run if job1 runs, even if there are no changes in dir2, without duplicating rules? Specifying dependency isn’t enough in this case. Of course, execution graph is significantly more complex than the one described here.

Thanks!