Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
Support extra build options to be passed to pandoc's build.sh
  • Loading branch information
chrisfenner authored Jan 12, 2024
1 parent 7696997 commit ec1df78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ inputs:
description: 'The name of the rendered DOCX file'
output-tex:
description: 'The name of the rendered TEX file'
extra-build-options:
description: 'Additional build options to be passed to build.sh'
runs:
using: 'composite'
steps:
Expand All @@ -20,7 +22,7 @@ runs:
- run: chown -R $(id -u):$(id -g) $PWD
shell: sh
- run: >
/usr/bin/build.sh
/usr/bin/build.sh ${{ inputs.extra-build-options }}
$( [ -n "${{ inputs.output-pdf }}" ] && echo --pdf=${{ inputs.output-pdf }} )
$( [ -n "${{ inputs.output-html }}" ] && echo --html=${{ inputs.output-html }} )
$( [ -n "${{ inputs.output-docx }}" ] && echo --docx=${{ inputs.output-docx }} )
Expand Down

0 comments on commit ec1df78

Please sign in to comment.