diff --git a/action.yml b/action.yml index 83f276a..46c669a 100644 --- a/action.yml +++ b/action.yml @@ -13,12 +13,18 @@ inputs: required: false default: main.tex + arguments: + description: "Arguments passed to latexmk" + required: false + default: "" + runs: using: 'docker' image: 'Dockerfile' env: ACTION_FORMAT: ${{ inputs.format }} ACTION_FILENAME: ${{ inputs.filename }} + ACTION_ARGS: ${{ inputs.arguments }} branding: icon: 'book' diff --git a/entrypoint b/entrypoint index 3ad2224..567aac7 100644 --- a/entrypoint +++ b/entrypoint @@ -12,6 +12,18 @@ case "$ACTION_FORMAT" in exit 1 ;; esac +if [ ! "$ACTION_ARGS" = "" ]; then + for arg in $ACTION_ARGS; do + case "$arg" in + -pvc) + continue + ;; + *) + command_string="$command_string $arg" + ;; + esac + done +fi if [ -n "$ACTION_FILENAME" ] then