From 34f616d3cada3523a1e08c3d1225b563f29b25df Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sun, 14 May 2023 18:29:36 +0200 Subject: [PATCH] Initial commit --- Dockerfile | 8 ++++++++ action.yml | 17 +++++++++++++++++ entrypoint.sh | 6 ++++++ 3 files changed, 31 insertions(+) create mode 100644 Dockerfile create mode 100644 action.yml create mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..20c8771 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM ubuntu + +RUN apt-get update -y +RUN 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