File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,9 +190,9 @@ jobs:
190190 $typstUrl = "https://github.com/typst/typst/releases/download/v$typstVersion/$typstZip"
191191 Invoke-WebRequest -Uri $typstUrl -OutFile $env:TEMP\$typstZip
192192 Expand-Archive -Path $env:TEMP\$typstZip -DestinationPath $env:TEMP\typst -Force
193- $typst = Join- Path $env:TEMP\typst "typst.exe"
194- if (-not (Test-Path $typst) ) { throw "Typst binary not found after extraction." }
195- "TYPST=$typst" >> $env:GITHUB_ENV
193+ $typst = Get-ChildItem - Path $env:TEMP\typst -Recurse -Filter "typst.exe" | Select-Object -First 1
194+ if (-not $typst) { throw "Typst binary not found after extraction." }
195+ "TYPST=$($ typst.FullName) " >> $env:GITHUB_ENV
196196
197197 - name : Build user manual
198198 shell : pwsh
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ jobs:
190190 fetch-depth : 0
191191
192192 - name : Setup .NET SDK
193- uses : actions/setup-dotnet@v6
193+ uses : actions/setup-dotnet@v4
194194 with :
195195 dotnet-version : " 9.0.x"
196196
@@ -381,9 +381,9 @@ jobs:
381381 $typstUrl = "https://github.com/typst/typst/releases/download/v$typstVersion/$typstZip"
382382 Invoke-WebRequest -Uri $typstUrl -OutFile $env:TEMP\$typstZip
383383 Expand-Archive -Path $env:TEMP\$typstZip -DestinationPath $env:TEMP\typst -Force
384- $typst = Join- Path $env:TEMP\typst "typst.exe"
385- if (-not (Test-Path $typst) ) { throw "Typst binary not found after extraction." }
386- "TYPST=$typst" >> $env:GITHUB_ENV
384+ $typst = Get-ChildItem - Path $env:TEMP\typst -Recurse -Filter "typst.exe" | Select-Object -First 1
385+ if (-not $typst) { throw "Typst binary not found after extraction." }
386+ "TYPST=$($ typst.FullName) " >> $env:GITHUB_ENV
387387
388388 - name : Compile user manual
389389 shell : pwsh
You can’t perform that action at this time.
0 commit comments