If I have 2 jobs, where one must run after the other, but the former can be skipped due to some condition, how do I ensure that the second job runs if its condition is true? (I am using https://github.com/marketplace/actions/paths-changes-filter to determine whether a job should run based on whether a change has happened in its subdirectory).
jobs:
job1:
if: some_condition_1
job2:
needs: job1
if: some_condition_2
So, if some_condition_1 is false, then job1 will not fire. How do I ensure that if some_condition_2 is true, that job2 runs if job1 is skipped? In the above setup, job2 does not fire if job1 is skipped. Additionally, job2 needs to run after job1 if job1 does actually run.