add skip for windows ci (#965)
This commit is contained in:
committed by
GitHub
vanhempi
b2e611a874
commit
05dc14934a
@@ -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)
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user