From aea9cf793f5f59631c1ea11a1e928b3172f0f290 Mon Sep 17 00:00:00 2001 From: David Claeys Date: Thu, 12 Feb 2026 09:15:56 +0100 Subject: [PATCH] update readme action --- .gitea/workflows/update_readme.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/update_readme.yml b/.gitea/workflows/update_readme.yml index 265d728..57c2296 100644 --- a/.gitea/workflows/update_readme.yml +++ b/.gitea/workflows/update_readme.yml @@ -25,9 +25,14 @@ jobs: - name: Install Fetch run: | echo "Installing fetch" - apt-get install -y curl - curl -fsSL https://deb.nodesource.com/setup_24.x | bash - npm install node-fetch + if ! command -v node &> /dev/null; then + apt-get install -y curl + curl -fsSL https://deb.nodesource.com/setup_24.x | bash + fi + package='node-fetch' + if [ `npm list -g | grep -c $package` -eq 0 ]; then + npm install $package --no-shrinkwrap + fi - name: Login to DockerHub container registry uses: https://github.com/docker/login-action@v3 with: