Commit 07682da 1 parent 8cfee0e commit 07682da Copy full SHA for 07682da
File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -12,24 +12,20 @@ jobs:
12
12
13
13
- name : Add Invalid Path
14
14
run : |
15
- echo "D:\InvalidPath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
15
+ echo "D:\InvalidPath" >> $env:GITHUB_PATH
16
16
echo "Updated PATH: $env:PATH"
17
- shell : pwsh
18
17
19
18
- name : Verify Invalid Path Added
20
19
run : echo $env:PATH
21
- shell : pwsh
22
20
23
21
- name : Clean PATH
24
22
run : |
25
23
$env:PATH = ($env:PATH -split ';' | Where-Object { Test-Path $_ }) -join ';'
26
24
echo "Cleaned PATH: $env:PATH"
27
- echo $env:PATH | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
28
- shell : pwsh
25
+ echo $env:PATH >> $env:GITHUB_PATH
29
26
30
27
- name : Verify Invalid Path Removed
31
28
run : echo $env:PATH
32
- shell : pwsh
33
29
34
30
- name : Set up Python
35
31
uses : actions/setup-python@v5
You can’t perform that action at this time.
0 commit comments