Skip to content

Commit

Permalink
Add env DOTNET_INSTALL_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Dec 26, 2024
1 parent 5d6db33 commit f363462
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/nugetTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
pull_request_target:
types: [ labeled ]

# Sets dotnet installation dir to avoid permissions issues while installing.
env:
DOTNET_INSTALL_DIR: "./.dotnet"

# Ensures that only the latest commit is running for each PR at a time.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }}
Expand Down Expand Up @@ -48,9 +52,6 @@ jobs:

- name: Install .NET
uses: actions/setup-dotnet@v4
if: matrix.os == 'ubuntu'
env:
DOTNET_INSTALL_DIR: "path/to/directory"
with:
dotnet-version: '6.x'

Expand Down

0 comments on commit f363462

Please sign in to comment.