ci: fixup doc-only-change on Windows (#35431)

This commit is contained in:
John Kleinschmidt 2022-08-24 17:39:56 -04:00 коммит произвёл GitHub
Родитель 07c3e62d68
Коммит 6f77e63804
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -64,11 +64,11 @@ for:
build_script: build_script:
- ps: | - ps: |
node script/yarn.js install --frozen-lockfile node script/yarn.js install --frozen-lockfile
$result = node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER --prBranch=$env:APPVEYOR_REPO_BRANCH node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER --prBranch=$env:APPVEYOR_REPO_BRANCH
Write-Output $result if ($LASTEXITCODE -eq 0) {
if ($result.ExitCode -eq 0) { Write-warning "Skipping tests for doc only change"; Exit-AppveyorBuild
Write-warning "Skipping build for doc only change"; Exit-AppveyorBuild
} }
$global:LASTEXITCODE = 0
- cd .. - cd ..
- ps: Write-Host "Building $env:GN_CONFIG build" - ps: Write-Host "Building $env:GN_CONFIG build"
- git config --global core.longpaths true - git config --global core.longpaths true
@ -255,11 +255,11 @@ for:
build_script: build_script:
- ps: | - ps: |
node script/yarn.js install --frozen-lockfile node script/yarn.js install --frozen-lockfile
$result = node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER --prBranch=$env:APPVEYOR_REPO_BRANCH node script/doc-only-change.js --prNumber=$env:APPVEYOR_PULL_REQUEST_NUMBER --prBranch=$env:APPVEYOR_REPO_BRANCH
Write-Output $result if ($LASTEXITCODE -eq 0) {
if ($result.ExitCode -eq 0) {
Write-warning "Skipping tests for doc only change"; Exit-AppveyorBuild Write-warning "Skipping tests for doc only change"; Exit-AppveyorBuild
} }
$global:LASTEXITCODE = 0
- ps: | - ps: |
cd .. cd ..
mkdir out\Default mkdir out\Default