Commit fd2afc8 1 parent 0a24906 commit fd2afc8 Copy full SHA for fd2afc8
File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 8
8
9
9
steps :
10
10
- name : Checkout repository
11
- uses : actions/checkout@v2
11
+ uses : actions/checkout@v4
12
12
13
13
- name : Add Invalid Path
14
14
run : |
15
- echo "Adding invalid path"
16
- $env:PATH = "D:\InvalidPath;" + $env:PATH
15
+ echo "D:\InvalidPath" >> $env:GITHUB_PATH
17
16
echo "Updated PATH: $env:PATH"
17
+ shell : pwsh
18
18
19
19
- name : Verify Invalid Path Added
20
- run : |
21
- echo "Verify invalid path"
22
- echo $env:PATH
20
+ run : echo $env:PATH
23
21
shell : pwsh
24
22
25
23
- name : Clean PATH
26
24
run : |
27
- echo "Cleaning PATH"
28
25
$env:PATH = ($env:PATH -split ';' | Where-Object { Test-Path $_ }) -join ';'
29
26
echo "Cleaned PATH: $env:PATH"
30
27
shell : pwsh
31
28
32
29
- name : Verify Invalid Path Removed
33
- run : |
34
- echo "Verify cleaned path"
35
- echo $env:PATH
30
+ run : echo $env:PATH
36
31
shell : pwsh
37
32
38
33
- name : Set up Python
You can’t perform that action at this time.
0 commit comments