Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorv-susu1 <v-susu@microsoft.com>2022-05-12 06:02:36 +0300
committerGitHub <noreply@github.com>2022-05-12 06:02:36 +0300
commit131e73c0a88c0d8c848b054f09b1f0285aac5bf6 (patch)
treee169a2023c3fc3b042bca43b54d2452806c73275
parent35a30add3341701fecd653f24aed8a98cd8ef375 (diff)
V susu/ci test (#630)
* Add para needRunReleaseMdoc into ps1 * Update compareXmlFiles.ps1
-rw-r--r--mdoc/compareXmlFiles.ps114
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"