diff --git a/.azuredevops/rocm_ci_caller.yml b/.azuredevops/rocm_ci_caller.yml index 537d2d8135..49dfa1e4de 100644 --- a/.azuredevops/rocm_ci_caller.yml +++ b/.azuredevops/rocm_ci_caller.yml @@ -50,15 +50,22 @@ jobs: cat ../changed_files.txt MATCH_FOUND=false + WINDOWS_SKIP=true while read file; do if [[ "$file" == projects/* ]]; then MATCH_FOUND=true + fi + if [[ "$file" == projects/clr/* || "$file" == projects/hip/* || "$file" == projects/hip-tests/* ]]; then + WINDOWS_SKIP=false + fi + if [[ "$MATCH_FOUND" == true && "$WINDOWS_SKIP" == false ]]; then break fi done < ../changed_files.txt echo "Match found: $MATCH_FOUND" echo "##vso[task.setvariable variable=match_found;isOutput=true]$MATCH_FOUND" + echo "##vso[task.setvariable variable=windows_skip;isOutput=true]$WINDOWS_SKIP" name: detectChanges displayName: Detect path changes @@ -69,6 +76,7 @@ jobs: pool: rocm-ci-caller variables: match_found: $[ dependencies.Determine_Changes.outputs['detectChanges.match_found'] ] + windows_skip: $[ dependencies.Determine_Changes.outputs['detectChanges.windows_skip'] ] steps: - checkout: none @@ -76,6 +84,21 @@ jobs: echo "DEBUG: match_found = '$(match_found)'" displayName: 'Debug match_found variable' + - script: | + echo "DEBUG: windows_skip = '$(windows_skip)'" + displayName: 'Debug windows_skip variable' + + - script: | + echo "Changes outside monitored paths (clr, hip, hip-tests). Skipping WindowsCI - Internal." + echo "Sending success status for WindowsCI - Internal..." + export GH_TOKEN=$(GH_PAT) + gh api repos/$(REPOSITORY_NAME)/statuses/$(HEAD_SHA) \ + -f state=success \ + -f context="WindowsCI - Internal" \ + -f description="Windows PSDB skipped" + displayName: 'Skip WindowsCI - Internal' + condition: eq(variables.windows_skip, 'true') + - script: | rm -rf $(repo_name) git clone $(gh_repo)