From 7035ae8a2d55350bad2646a06ced7108cb9b35d4 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 28 Feb 2024 10:01:05 +0100 Subject: [PATCH] try ci --- .gitea/workflows/action.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index e851365..f764795 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -61,6 +61,17 @@ jobs: LATEX_SPELLCHECK_TEXLIVE_VERSION: TL2021-2021-12-12-04-05 LATEX_SPELLCHECK_TEXLIVE_IMAGE: registry.gitlab.com/islandoftex/images/texlive 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: | + apt update -y && apt install -y curl + curl -sS https://webi.sh/node | sh + echo ~/.local/opt/node/bin >> $GITHUB_PATH - uses: actions/checkout@v3 with: fetch-depth: 0