Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add an option in setup action to put bundled Pandoc in PATH #107

Open
cderv opened this issue Jun 12, 2024 · 2 comments
Open

Add an option in setup action to put bundled Pandoc in PATH #107

cderv opened this issue Jun 12, 2024 · 2 comments
Assignees

Comments

@cderv
Copy link
Collaborator

cderv commented Jun 12, 2024

cc @hadley

With something like this

steps:
    - uses: quarto-dev/quarto-actions/setup@v2
      env:
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        add-pandoc-to-path: true

As we know where Pandoc is in the installed folder, we could add it to $GITHUB_PATH to make it available also outside of quarto rendering.

@cderv
Copy link
Collaborator Author

cderv commented Jun 12, 2024

Another way to help others use the bundled quarto version would be to return as an action output the path to Pandoc binary.

This way it could be set by others in a later step to PATH or to an env var (like RSTUDIO_PANDOC for rmarkdown use only)

This would be default output - no flag needed.

@hadley
Copy link

hadley commented Jun 13, 2024

I think it would be more helpful to just set the path — it would be nice to have one action that allows to you use pandoc in both quarto and RMarkdown docs.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants