Skip to content

Commit d63c71d

Browse files
committed
Guard pandoc invocation
1 parent dd9c7de commit d63c71d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-test-installer-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ jobs:
142142
$content = $content -replace '_DATE_', $date
143143
Set-Content $releaseNotesPath $content -Encoding UTF8
144144
New-Item -ItemType Directory -Path (Split-Path $outputHtml) -Force | Out-Null
145-
pandoc $releaseNotesPath -o $outputHtml --standalone
145+
$pandoc = Get-Command pandoc -ErrorAction SilentlyContinue
146+
if (-not $pandoc) {
147+
Write-Error "pandoc.exe not found on PATH."
148+
exit 1
149+
}
150+
& $pandoc.Path $releaseNotesPath -o $outputHtml --standalone
146151
147152
- name: Build installer
148153
run: msbuild build\SayMore.proj /t:Installer /p:Configuration=$env:Configuration /p:Version=$env:Version /m

0 commit comments

Comments
 (0)