lvignoli / typst-action

Typst GitHub action
MIT License
53 stars 10 forks source link

Feature Request: Allow Spcification of Output File Name #2

Open DeveloperPaul123 opened 1 year ago

DeveloperPaul123 commented 1 year ago

Currently, it's not possible to specify the output file name with the github action. It would be good to allow users to specify this or simply remove the output file name from the command so that the output pdf file name matches the input typ filename.

lvignoli commented 1 year ago

Yes, I almost erased the main.pdf in the script when fixing #1, so will fix it!

lvignoli commented 1 year ago

@DeveloperPaul123 continuing discussion from #3 here

In fact, if you know how you want to name the output file for every source file, it is easy enough to just rename them in another step of a workflow.

So, I would like to consider renaming the output file as a redundant feature for the action.

Do you have a use case in mind where it would be useful?

lvignoli commented 1 year ago

Also, as of v1.0.2, the output file will get its name from the input one (I removed the hardcoded main.pdf)

DeveloperPaul123 commented 1 year ago

@lvignoli I think having the files be named according to the input file name should suffice for now. Just thought it would be nice since you can specify it when running typst directly.

lvignoli commented 1 year ago

I agree it would be nice, I am just unsure how to correctly offer the feature with a YAML definition. I'll let this open to think a bit about it

lvignoli commented 1 year ago

Restating earlier syntax proposal of #3 here:

source_file : |
   foo.typ bar.pdf
   baz.typ
   fizz.typ
   buzz.typ buzzy.pdf