Skip to content

Commit

Permalink
pspreview_2
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Nov 6, 2023
1 parent f8a7cb9 commit fcb2856
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
shell: pwsh
run: |
dotnet tool install --global PowerShell
$oldpath = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine')
[System.Environment]::SetEnvironmentVariable('PATH', 'C:\Users\runneradmin\.dotnet\tools;' + $newPath, 'Machine')
$oldpath = [System.Environment]::GetEnvironmentVariable('PATH', 'User')
[System.Environment]::SetEnvironmentVariable('PATH', 'C:\Users\runneradmin\.dotnet\tools;' + $oldPath, 'User')
[System.Environment]::GetEnvironmentVariable('PATH', 'User')
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -44,6 +45,7 @@ jobs:
id: build
shell: pwsh
run: |
[System.Environment]::GetEnvironmentVariable('PATH', 'User')
gci env:PATH
pwsh -v
Expand Down

0 comments on commit fcb2856

Please sign in to comment.