Skip to content

Commit

Permalink
Use the correct dotnet folder to clean out
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Eisinger committed Aug 10, 2020
1 parent 9d9ff9f commit 4e86def
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,15 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clear tool cache
if: runner.os != 'windows'
run: rm -rf $RUNNER_TOOL_CACHE/*
run: rm -rf "$HOME/.dotnet"
- name: Clear tool cache (Windows)
if: runner.os == 'windows'
run: Remove-Item $RUNNER_TOOL_CACHE/* -Recurse -Force -ErrorAction SilentlyContinue
run: Remove-Item $env:LocalAppData\Microsoft\dotnet/* -Recurse -Force -ErrorAction SilentlyContinue
- name: Setup dotnet 3.1.201
uses: ./
with:
Expand All @@ -69,12 +67,11 @@ jobs:
- 3128:3128
env:
https_proxy: http://squid-proxy:3128
DOTNET_INSTALL_DIR: ${{ runner.temp }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clear tool cache
run: rm -rf $RUNNER_TOOL_CACHE/*
run: rm -rf "$HOME/.dotnet"
- name: Setup dotnet 3.1.201
uses: ./
with:
Expand All @@ -87,12 +84,11 @@ jobs:
env:
https_proxy: http://no-such-proxy:3128
no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net
DOTNET_INSTALL_DIR: ${{ runner.temp }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clear tool cache
run: rm -rf $RUNNER_TOOL_CACHE/*
run: rm -rf "$HOME/.dotnet"
- name: Setup dotnet 3.1.201
uses: ./
with:
Expand Down

0 comments on commit 4e86def

Please sign in to comment.