Skip to content

Commit 2537497

Browse files
committed
WIP #248 - Another technique to set path
1 parent 4fa7de4 commit 2537497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/dotnetCi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
BranchName: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
2424
BranchParam: ${{ github.event_name == 'pull_request' && 'sonar.pullrequest.branch' || 'sonar.branch.name' }}
2525
PullRequestParam: ${{ github.event_name == 'pull_request' && format('/d:sonar.pullrequest.key={0}', github.event.number) || '' }}
26+
PATH: ${{ env.PATH }}
2627

2728
steps:
2829
- name: Checkout
@@ -45,7 +46,7 @@ jobs:
4546
# Environment setup pre-build
4647

4748
- name: Add .NET global tools location to PATH
48-
run: export PATH="$PATH:/home/runner/.dotnet/tools"
49+
run: echo "$HOME/.dotnet/tools" >> "$GITHUB_PATH"
4950
- name: Install SonarScanner
5051
run: dotnet tool install --global dotnet-sonarscanner
5152
- name: Install Coverlet console

0 commit comments

Comments
 (0)