From 9726f032dadb9f238533334ccbd028321ea50955 Mon Sep 17 00:00:00 2001 From: xavix-yo Date: Sun, 19 Jul 2026 22:40:50 +0100 Subject: [PATCH] Fix: replace actions/checkout with direct git commands (no Node.js in runner) --- .gitea/workflows/nightly.yml | 9 ++++++++- .gitea/workflows/release.yml | 18 ++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/nightly.yml b/.gitea/workflows/nightly.yml index b4f31b6..e4e6cac 100644 --- a/.gitea/workflows/nightly.yml +++ b/.gitea/workflows/nightly.yml @@ -11,7 +11,14 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + run: | + # No Node.js available in runner container — use git directly + cd "${GITHUB_WORKSPACE:-.}" + git init + git remote add origin http://gitea:3000/dguiducci/Skald-Circle.git + git fetch --depth 1 origin "${GITHUB_REF_NAME:-main}" + git checkout FETCH_HEAD + git submodule update --init --recursive 2>/dev/null || true - name: Build native (linux/amd64) run: ./build.sh diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d14327a..a6c123f 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -16,7 +16,14 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + run: | + # No Node.js available in runner container — use git directly + cd "${GITHUB_WORKSPACE:-.}" + git init + git remote add origin http://gitea:3000/dguiducci/Skald-Circle.git + git fetch --depth 1 origin "${GITHUB_REF_NAME:-release}" + git checkout FETCH_HEAD + git submodule update --init --recursive 2>/dev/null || true - name: Verify version is new run: ./scripts/verify-version.sh --builds-dir /var/www/builds.skaldagent.net @@ -31,7 +38,14 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + run: | + # No Node.js available in runner container — use git directly + cd "${GITHUB_WORKSPACE:-.}" + git init + git remote add origin http://gitea:3000/dguiducci/Skald-Circle.git + git fetch --depth 1 origin "${GITHUB_REF_NAME:-release}" + git checkout FETCH_HEAD + git submodule update --init --recursive 2>/dev/null || true - name: Extract version from Cargo.toml id: extract-version