commit b3722222edd01bc295d9db68a66cb27491fcbd8a Author: Edgar P. Burkhart Date: Sun May 14 18:29:36 2023 +0200 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a184394 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM ubuntu + +RUN apt-get update -y +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y texlive-full + +COPY entrypoint.sh /root/ + +ENTRYPOINT ["/root/entrypoint.sh"] diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..97a28cd --- /dev/null +++ b/action.yml @@ -0,0 +1,17 @@ +name: "Latexmk" +description: "Run latexmk with most latex packages" +author: edpibu +inputs: + root_file: + description: File to compile + working_directory: + description: Working directory +runs: + using: "docker" + image: "Dockerfile" + args: + - ${{ inputs.working_directory }} + - ${{ inputs.root_file }} + branding: + icon: book + color: blue diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..6ef2a16 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e + +cd $1 +latexmk $2