Skip to content

Commit

Permalink
Add the chocolatey 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 9f3fc56 commit 6c65887
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/full_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,24 @@ jobs:
# # Install Pandoc
# C:\ProgramData\chocolatey\bin\choco install pandoc -y
# }
C:\ProgramData\chocolatey\bin\choco install pandoc -y
# Add the pandoc path to PATH.
$pandocPath = Join-Path $env:ChocolateyInstall 'bin'
if ($env:PATH -notlike "*$pandocPath*") {
[Environment]::SetEnvironmentVariable('PATH', "$($env:PATH) $pandocPath", [System.EnvironmentVariableTarget]::Machine)
echo "Pandoc path added."
$chocoPath = "C:\ProgramData\chocolatey\bin"
if ($env:PATH -notlike "*$chocoPath*") {
[Environment]::SetEnvironmentVariable('PATH', "$($env:PATH) chocoPath", [System.EnvironmentVariableTarget]::Machine)
echo "Chocolatey path added. Pandoc shim is now in PATH."
} else {
echo "Pandoc path is already in the PATH variable."
echo "The Chocolatey path is already in the PATH variable."
}
#C:\ProgramData\chocolatey\bin\choco install pandoc -y
choco install pandoc -y
# Add the pandoc path to PATH.
#$pandocPath = Join-Path $env:ChocolateyInstall '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 6c65887

Please sign in to comment.