Skip to content

Commit

Permalink
Add the pandoc path to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin-Crawford committed Dec 10, 2023
1 parent 17e1ae5 commit 7a16fc3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/full_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ jobs:
C:\ProgramData\chocolatey\bin\choco install pandoc -y
# Add the pandoc path to PATH.
$pandocPath = (Get-Command pandoc).Path | Split-Path
#if ($env:PATH -notlike "*$pandocPath*") {
[Environment]::SetEnvironmentVariable('PATH', "$($env:PATH) $pandocPath", [System.EnvironmentVariableTarget]::Machine)
# echo "Pandoc path added."
#} else {
# echo "Pandoc path is already in the PATH variable."
#}
$pandocPath = "C:\ProgramData\chocolatey\bin\choco\bin"
if ($env:PATH -notlike "*$pandocPath*") {
[Environment]::SetEnvironmentVariable('PATH', "$($env:PATH) $pandocPath", [System.EnvironmentVariableTarget]::Machine)
echo "Pandoc path added."
} else {
echo "Pandoc path is already in the PATH variable."
}
- name: 'Create virtual env'
run: |
Expand Down

0 comments on commit 7a16fc3

Please sign in to comment.