diff options
author | v-susu1 <v-susu@microsoft.com> | 2022-05-12 06:02:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 06:02:36 +0300 |
commit | 131e73c0a88c0d8c848b054f09b1f0285aac5bf6 (patch) | |
tree | e169a2023c3fc3b042bca43b54d2452806c73275 | |
parent | 35a30add3341701fecd653f24aed8a98cd8ef375 (diff) |
V susu/ci test (#630)
* Add para needRunReleaseMdoc into ps1
* Update compareXmlFiles.ps1
-rw-r--r-- | mdoc/compareXmlFiles.ps1 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mdoc/compareXmlFiles.ps1 b/mdoc/compareXmlFiles.ps1 index 311703ca..46be4fe7 100644 --- a/mdoc/compareXmlFiles.ps1 +++ b/mdoc/compareXmlFiles.ps1 @@ -3,7 +3,8 @@ param ( [string]$githubTokenBase64, [string]$githubOptionsAccountName, [string]$githubOptionsAccountEmail, - [string]$vstsTokenBase64 + [string]$vstsTokenBase64, + [bool]needRunReleaseMdoc ) function Git-Init([string]$githubAccountName, [string]$githubAccountEmail) @@ -145,11 +146,14 @@ function Run($source_repo,$target_repo,$origin_target_repo) } Copy-Item "$originRepoXmlPath\*" -Destination "$xmlPath\" -Recurse -Force -Container - Write-Host "==================== Run Mdoc(release version) tool to generated xml files." - Run-Mdoc $releaseMdocPath $frameworksPath $xmlPath - if ($lastexitcode -ne 0) + if($needRunReleaseMdoc -eq $true) { - exit $lastexitcode + Write-Host "==================== Run Mdoc(release version) tool to generated xml files." + Run-Mdoc $releaseMdocPath $frameworksPath $xmlPath + if ($lastexitcode -ne 0) + { + exit $lastexitcode + } } Write-Host "==================== First to commit xml files" |