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