diff --git a/.azuredevops/rocm_ci_caller.yml b/.azuredevops/rocm_ci_caller.yml index 80e679daf3..b3b103ceba 100644 --- a/.azuredevops/rocm_ci_caller.yml +++ b/.azuredevops/rocm_ci_caller.yml @@ -43,7 +43,9 @@ jobs: fi done < changed_files.txt - echo "##vso[task.setvariable variable=match_found]$MATCH_FOUND" + echo "Match found: $MATCH_FOUND" + echo "##vso[task.setvariable variable=match_found;isOutput=true]$MATCH_FOUND" + name: detectChanges displayName: Detect path changes - job: Trigger_Pipeline @@ -51,10 +53,12 @@ jobs: dependsOn: Determine_Changes condition: succeeded() pool: rocm-ci-caller + variables: + match_found: $[ dependencies.Determine_Changes.outputs['detectChanges.match_found'] ] steps: - checkout: none - - ${{ if eq(dependencies.Determine_Changes.outputs['Determine_Changes.match_found'], 'true') }}: + - ${{ if eq(variables.match_found, 'true') }}: - script: | rm -rf $(repo_name) git clone $(gh_repo) @@ -86,7 +90,7 @@ jobs: env: svc_acc_org_secret: $(svc_acc_org_secret) - - ${{ if ne(dependencies.Determine_Changes.outputs['Determine_Changes.match_found'], 'true') }}: + - ${{ if ne(variables.match_found, 'true') }}: - script: | echo "Changes outside monitored paths. Skipping Jenkins trigger." echo "Sending success status for PSDB..."