Skip to content

Commit e5c88b0

Browse files
Update python-app.yml
1 parent 8bc3c1c commit e5c88b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/python-app.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88

99
steps:
1010
- name: Checkout repository
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v4
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" | Out-File -FilePath $env:$GITHUB_ENV -Encoding utf8 -Append
1616
echo "Updated PATH: $env:PATH"
1717
1818
- name: Verify Invalid Path Added
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
$cleanedPath = ($env:PATH -split ';' | Where-Object { Test-Path $_ }) -join ';'
2424
echo "Cleaned PATH: $cleanedPath"
25-
echo $cleanedPath >> $env:GITHUB_PATH
25+
echo $cleanedPath >> $env:$GITHUB_ENV
2626
shell: pwsh
2727

2828

0 commit comments

Comments
 (0)