Skip to content

Commit f363462

Browse files
committed
Add env DOTNET_INSTALL_DIR
1 parent 5d6db33 commit f363462

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/nugetTests.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
pull_request_target:
1111
types: [ labeled ]
1212

13+
# Sets dotnet installation dir to avoid permissions issues while installing.
14+
env:
15+
DOTNET_INSTALL_DIR: "./.dotnet"
16+
1317
# Ensures that only the latest commit is running for each PR at a time.
1418
concurrency:
1519
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }}
@@ -48,9 +52,6 @@ jobs:
4852

4953
- name: Install .NET
5054
uses: actions/setup-dotnet@v4
51-
if: matrix.os == 'ubuntu'
52-
env:
53-
DOTNET_INSTALL_DIR: "path/to/directory"
5455
with:
5556
dotnet-version: '6.x'
5657

0 commit comments

Comments
 (0)