Skip to content

Commit 131e73c

Browse files
authored
V susu/ci test (#630)
* Add para needRunReleaseMdoc into ps1 * Update compareXmlFiles.ps1
1 parent 35a30ad commit 131e73c

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

mdoc/compareXmlFiles.ps1

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ param (
33
[string]$githubTokenBase64,
44
[string]$githubOptionsAccountName,
55
[string]$githubOptionsAccountEmail,
6-
[string]$vstsTokenBase64
6+
[string]$vstsTokenBase64,
7+
[bool]needRunReleaseMdoc
78
)
89

910
function Git-Init([string]$githubAccountName, [string]$githubAccountEmail)
@@ -145,11 +146,14 @@ function Run($source_repo,$target_repo,$origin_target_repo)
145146
}
146147
Copy-Item "$originRepoXmlPath\*" -Destination "$xmlPath\" -Recurse -Force -Container
147148

148-
Write-Host "==================== Run Mdoc(release version) tool to generated xml files."
149-
Run-Mdoc $releaseMdocPath $frameworksPath $xmlPath
150-
if ($lastexitcode -ne 0)
149+
if($needRunReleaseMdoc -eq $true)
151150
{
152-
exit $lastexitcode
151+
Write-Host "==================== Run Mdoc(release version) tool to generated xml files."
152+
Run-Mdoc $releaseMdocPath $frameworksPath $xmlPath
153+
if ($lastexitcode -ne 0)
154+
{
155+
exit $lastexitcode
156+
}
153157
}
154158

155159
Write-Host "==================== First to commit xml files"

0 commit comments

Comments
 (0)