From 9f3fc56789e4315617f30cd7db9aec6953323bfe Mon Sep 17 00:00:00 2001 From: Devin Date: Sun, 10 Dec 2023 20:43:45 +0100 Subject: [PATCH] Add the pandoc path to PATH --- .github/workflows/full_documentation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/full_documentation.yml b/.github/workflows/full_documentation.yml index 424cb5a08bf..d33436310eb 100644 --- a/.github/workflows/full_documentation.yml +++ b/.github/workflows/full_documentation.yml @@ -52,7 +52,7 @@ jobs: C:\ProgramData\chocolatey\bin\choco install pandoc -y # Add the pandoc path to PATH. - $pandocPath = "C:\ProgramData\chocolatey\bin\choco\bin" + $pandocPath = Join-Path $env:ChocolateyInstall 'bin' if ($env:PATH -notlike "*$pandocPath*") { [Environment]::SetEnvironmentVariable('PATH', "$($env:PATH) $pandocPath", [System.EnvironmentVariableTarget]::Machine) echo "Pandoc path added."