Inside my repo I need to build 3 JARs. I currently have a workflow which builds all of them even though commit/update comes to one component.
Is there a way that I can provide a condition to match the path the commit comes and execute that job only.
on: push: paths: -'main/component/path/**' jobs: build_jar_1 build_jar_2 build_jar_3
What I need :
on: push: paths: -'main/component/path/**' jobs: build_jar_1 if path == 'sub/component/path_1' build_jar_2 if path == 'sub/component/path_2' build_jar_3 if path == 'sub/component/path_3'