Skip to content

Commit

Permalink
Try #2
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Jul 7, 2021
1 parent b327cc7 commit 8c0a3fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/templates/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ steps:
#@ def buildDocs():
#@ docsCondition = "${{ !contains(github.ref, 'release') }}"
- name: Check Docfx cache
if: #@ docsCondition
id: check-docfx-cache
if: #@ docsCondition
uses: actions/cache@v2
with:
path: 'C:\docfx'
key: docfx
- name: Download docfx
if: #@ docsCondition + " && steps.check-docfx-cache.outputs.cache-hit != 'true'"
if: #@ "steps.check-docfx-cache.outputs.cache-hit != 'true' && " + docsCondition
run: |
Invoke-WebRequest -Uri https://github.com/dotnet/docfx/releases/download/v2.58/docfx.zip -OutFile C:\docfx.zip
Expand-Archive -Path C:\docfx.zip -DestinationPath C:\docfx
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ jobs:
echo "::set-output name=package_version::$pkgName"
shell: bash
- name: Check Docfx cache
if: ${{ !contains(github.ref, 'release') }}
id: check-docfx-cache
if: ${{ !contains(github.ref, 'release') }}
uses: actions/cache@v2
with:
path: C:\docfx
key: docfx
- name: Download docfx
if: ${{ !contains(github.ref, 'release') }} && steps.check-docfx-cache.outputs.cache-hit != 'true'
if: steps.check-docfx-cache.outputs.cache-hit != 'true' && ${{ !contains(github.ref, 'release') }}
run: |
Invoke-WebRequest -Uri https://github.com/dotnet/docfx/releases/download/v2.58/docfx.zip -OutFile C:\docfx.zip
Expand-Archive -Path C:\docfx.zip -DestinationPath C:\docfx
Expand Down

0 comments on commit 8c0a3fd

Please sign in to comment.