From 9e652d76e6483936b68c95ebce4df2c1d282be38 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 22 Feb 2026 06:35:09 +0100 Subject: [PATCH] fix: replace actions/checkout with git clone for host runner The linux runner lacks node, so actions/checkout@v4 fails. Use plain git clone instead. --- .gitea/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index df01064..9255306 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,12 +11,14 @@ jobs: runs-on: linux steps: - name: Checkout - uses: actions/checkout@v4 + run: | + git clone --depth 1 --branch "${{ github.ref_name }}" \ + "${{ github.server_url }}/${{ github.repository }}.git" workspace - name: Markdown lint run: | podman run --rm \ - -v "${{ github.workspace }}:/work:Z" \ + -v "$PWD/workspace:/work:Z" \ docker.io/davidanson/markdownlint-cli2:v0.17.2 \ "**/*.md" @@ -24,12 +26,14 @@ jobs: runs-on: linux steps: - name: Checkout - uses: actions/checkout@v4 + run: | + git clone --depth 1 --branch "${{ github.ref_name }}" \ + "${{ github.server_url }}/${{ github.repository }}.git" workspace - name: Check internal links run: | podman run --rm \ - -v "${{ github.workspace }}:/work:Z" \ + -v "$PWD/workspace:/work:Z" \ -w /work \ docker.io/library/python:3.12-slim \ python3 scripts/check-links.py