Skip to content

Commit

Permalink
pspreview_6
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Nov 6, 2023
1 parent 1ab9f55 commit 7b7c3c0
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,38 @@ on:
paths-ignore:
- '**.md'
- '.all-contributorsrc'
env:
PATH: C:\Users\runneradmin\.dotnet\tools;$PATH
# env:
# PATH: C:\Users\runneradmin\.dotnet\tools;$PATH

jobs:
build:
runs-on: windows-latest
steps:

- name: Add C:\Users\runneradmin\.dotnet\tools to PATH
shell: pwsh
run: |
# Define the text you want to prepend
$prependText = "C:\Users\runneradmin\.dotnet\tools"
# Specify the file path
$filePath = $env:GITHUB_PATH
$filePath
# Read the existing content of the file
$content = Get-Content -Path $filePath
# Combine the prependText and existing content with a line break
$newContent = $prependText + "`r`n" + $content
# Write the modified content back to the file, overwriting it
$newContent | Set-Content -Path $filePath -Encoding utf8
$newContent
# echo "C:\Users\runneradmin\.dotnet\tools" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: HACK - Install Latest PowerShell (so we get v7.3+ that uses .net 7)
shell: pwsh
run: |
Expand Down

0 comments on commit 7b7c3c0

Please sign in to comment.