Skip to content

Commit 48dfacf

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 1ca3a8e commit 48dfacf

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
@@ -228,7 +228,7 @@ jobs:
228228
https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe
229229
.\rustup-init.exe --default-toolchain none -y
230230
Remove-Item rustup-init.exe
231-
Add-Content -Value "PATH=$Env:USERPROFILE\.cargo\bin;$Env:PATH" -Path $Env:GITHUB_ENV
231+
Add-Content -Value "$Env:USERPROFILE\.cargo\bin" -Path $Env:GITHUB_PATH
232232
}
233233
- uses: dtolnay/rust-toolchain@stable
234234
- uses: Swatinem/rust-cache@v2
@@ -265,7 +265,7 @@ jobs:
265265
https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe
266266
.\rustup-init.exe --default-toolchain none -y
267267
Remove-Item rustup-init.exe
268-
Add-Content -Value "PATH=$Env:USERPROFILE\.cargo\bin;$Env:PATH" -Path $Env:GITHUB_ENV
268+
Add-Content -Value "$Env:USERPROFILE\.cargo\bin" -Path $Env:GITHUB_PATH
269269
}
270270
- uses: dtolnay/rust-toolchain@stable
271271
- uses: Swatinem/rust-cache@v2

0 commit comments

Comments
 (0)