Skip to content

Commit 07682da

Browse files
Update python-app.yml
1 parent 8cfee0e commit 07682da

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/python-app.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,20 @@ jobs:
1212

1313
- name: Add Invalid Path
1414
run: |
15-
echo "D:\InvalidPath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
15+
echo "D:\InvalidPath" >> $env:GITHUB_PATH
1616
echo "Updated PATH: $env:PATH"
17-
shell: pwsh
1817
1918
- name: Verify Invalid Path Added
2019
run: echo $env:PATH
21-
shell: pwsh
2220

2321
- name: Clean PATH
2422
run: |
2523
$env:PATH = ($env:PATH -split ';' | Where-Object { Test-Path $_ }) -join ';'
2624
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
2926
3027
- name: Verify Invalid Path Removed
3128
run: echo $env:PATH
32-
shell: pwsh
3329

3430
- name: Set up Python
3531
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)