From 1104ece4d37b22f79f2a93d2386e8fd887f814af Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 26 Feb 2024 11:38:18 +0100 Subject: [PATCH] add ci --- .gitea/workflows/action.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index b35da2b..99578b2 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -15,7 +15,21 @@ jobs: container: image: leplusorg/latex + + + steps: + - name: "Determine prerequisites" + id: prereq + run: | + echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT + - name: Install node + if: ${{ steps.prereq.outputs.need_node == '1' }} + run: | + curl -sS https://webi.sh/node | sh + echo ~/.local/opt/node/bin >> $GITHUB_PATH + + - uses: actions/checkout@v3 with: fetch-depth: 0