diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ad402550..733804ff 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -47,7 +47,7 @@ jobs: Add-Content link_branch.json "{`"_gitContribute`":{`"sourceBranch`":`"$env:GITHUB_SHA`",`"apiSpecFolder`":`"docs/override`"}}" powershell .\build.ps1 if ($lastexitcode -ne 0){ - throw [System.Exception] "docfx build failed with exit code $lastexitcode." + throw [System.Exception] "docfx build failed with exit code $lastexitcode." } - name: Publish master site to GitHub pages shell: powershell @@ -76,7 +76,7 @@ jobs: $srcMessage = (git show -s --format=%B $env:GITHUB_SHA) -join "`n" cd $env:ORIGIN_SITE - + if (-Not (Test-Path $env:BRANCH_DIR)) { New-Item -ItemType directory -Path $env:BRANCH_DIR } diff --git a/.github/workflows/tag_docs.yml b/.github/workflows/tag_docs.yml index 4de225cb..af5908a0 100644 --- a/.github/workflows/tag_docs.yml +++ b/.github/workflows/tag_docs.yml @@ -45,10 +45,10 @@ jobs: run: | Add-Content link_branch.json "{`"_gitContribute`":{`"sourceBranch`":`"$env:GITHUB_SHA`",`"apiSpecFolder`":`"docs/override`"}}" powershell .\build.ps1 - if ($lastexitcode -ne 0){ - throw [System.Exception] "docfx build failed with exit code $lastexitcode." + if ($lastexitcode -ne 0) { + throw [System.Exception] "docfx build failed with exit code $lastexitcode." } - - name: Publish tag site to GitHub pages + - name: Publish tag site to GitHub pages shell: powershell working-directory: ./docs run: |