Skip to content

Commit 7c57968

Browse files
committed
Fix env-setting
1 parent c24178e commit 7c57968

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
run: |
4747
$ARCH = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'aarch64' } else { 'x86_64' }
4848
$RTOOLS = if ('${{ matrix.os }}' -eq 'windows-11-arm') { "rtools45-$ARCH" } else { 'rtools45' }
49-
echo $ARCH | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
50-
echo $RTOOLS | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
49+
echo "ARCH=$ARCH" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
50+
echo "RTOOLS=$RTOOLS" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
5151
Invoke-WebRequest `
5252
-Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe `
5353
-Headers @{ 'Authorization' = "Bearer ${{ secrets.GITHUB_TOKEN }}" } `
@@ -99,8 +99,8 @@ jobs:
9999
run: |
100100
$ARCH = if ('${{ matrix.os }}' -eq 'windows-11-arm') { 'aarch64' } else { 'x86_64' }
101101
$RTOOLS = if ('${{ matrix.os }}' -eq 'windows-11-arm') { "rtools45-$ARCH" } else { 'rtools45' }
102-
echo $ARCH | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
103-
echo $RTOOLS | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
102+
echo "ARCH=$ARCH" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
103+
echo "RTOOLS=$RTOOLS" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
104104
Invoke-WebRequest `
105105
-Uri https://github.com/r-hub/rtools45/releases/download/latest/$RTOOLS.exe `
106106
-Headers @{ 'Authorization' = "Bearer ${{ secrets.GITHUB_TOKEN }}" } `

0 commit comments

Comments
 (0)