From 4fecc4bd2c28edabaf90dedfd5811e6b0197b53a Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sun, 26 Jul 2026 22:59:43 +0200 Subject: [PATCH] ci: install nodejs before checkout actions/checkout@v4 is a JavaScript action and the archlinux image ships no node, so it failed with `exec: "node": executable file not found in $PATH`. A `run:` step does not require a checkout, so the toolchain is installed first and the standard action then works unchanged. --- .gitea/workflows/update.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/update.yaml b/.gitea/workflows/update.yaml index dcf7601..8ec9b99 100644 --- a/.gitea/workflows/update.yaml +++ b/.gitea/workflows/update.yaml @@ -53,12 +53,16 @@ jobs: - tsparams steps: - - uses: actions/checkout@v4 - - - name: Install dependencies + # Must come BEFORE actions/checkout. That action is JavaScript, and the + # archlinux image ships no node, so checkout dies with + # `exec: "node": executable file not found in $PATH`. A `run:` step needs + # no checkout, so the toolchain can be installed first. + - name: Bootstrap container run: | pacman -Syu --noconfirm --needed \ - git openssh jq curl pacman-contrib namcap fuse2 python + nodejs git openssh jq curl pacman-contrib namcap fuse2 python + + - uses: actions/checkout@v4 - name: Configure git and SSH env: