From c1cb057addb9e090fd66f60eb5001bff0aa841b6 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sat, 4 Jan 2020 01:00:34 -0600 Subject: [PATCH] Formatting --- .github/workflows/docs.yml | 4 ++-- .github/workflows/tag_docs.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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: |