Skip to content

Multiple outputs #20

New issue

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

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

Already on GitHub? Sign in to your account

Closed
vlc1 opened this issue Sep 10, 2021 · 2 comments
Closed

Multiple outputs #20

vlc1 opened this issue Sep 10, 2021 · 2 comments
Labels
question Further information is requested

Comments

@vlc1
Copy link

vlc1 commented Sep 10, 2021

Hi there,

I'm currently using Pandoc's docker in a Github action and it's working really well, thanks a lot for providing this opportunity!

I'm currently converting a single markdown file into latex using something like this :

- name: Pandoc
  uses: docker://pandoc/core:2.9
  with:
    args: >-
      -s -N
      -f markdown
      -t latex
      -o foo.tex
      foo.md

I would like to do this for multiple files, i. e. convert bar.md to bar.tex, baz.md to bar.tex and so forth and so on.

I tried the following but Github is complaining about the sequence...

- name: Pandoc
  uses: docker://pandoc/core:2.9
  with:
    args:
      - -s -N -f markdown -t latex -o foo.tex foo.md
      - -s -N -f markdown -t latex -o bar.tex bar.md

Any pointers on how I could do this would be greatly appreciated! Thanks a lot!

@alerque
Copy link
Collaborator

alerque commented Sep 10, 2021

See PR #11 for an example of how you can iterate multiple files in one Action. The exact details of what you do are up to us, but you have access to a shell with pandoc available to script the batch conversion however you like.

@alerque alerque closed this as completed Sep 10, 2021
@alerque alerque added the question Further information is requested label Sep 10, 2021
@vlc1
Copy link
Author

vlc1 commented Sep 10, 2021

Thanks @alerque that worked perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants