Skip to content

Commit 8a234ef

Browse files
committed
Use GITHUB_PATH to add to PATH
Instead of `GITHUB_ENV`. `GITHUB_ENV` works, but `GITHUB_PATH` is preferable, and simpler.
1 parent 645122c commit 8a234ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe
182182
.\rustup-init.exe --default-toolchain none -y
183183
Remove-Item rustup-init.exe
184-
Add-Content -Value "PATH=$Env:USERPROFILE\.cargo\bin;$Env:PATH" -Path $Env:GITHUB_ENV
184+
Add-Content -Value "$Env:USERPROFILE\.cargo\bin" -Path $Env:GITHUB_PATH
185185
}
186186
- uses: dtolnay/rust-toolchain@stable
187187
- uses: Swatinem/rust-cache@v2
@@ -218,7 +218,7 @@ jobs:
218218
https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe
219219
.\rustup-init.exe --default-toolchain none -y
220220
Remove-Item rustup-init.exe
221-
Add-Content -Value "PATH=$Env:USERPROFILE\.cargo\bin;$Env:PATH" -Path $Env:GITHUB_ENV
221+
Add-Content -Value "$Env:USERPROFILE\.cargo\bin" -Path $Env:GITHUB_PATH
222222
}
223223
- uses: dtolnay/rust-toolchain@stable
224224
- uses: Swatinem/rust-cache@v2

0 commit comments

Comments
 (0)