From 1a1c20c7340d68333e1aeb49105cd9bd3b5f7fdc Mon Sep 17 00:00:00 2001 From: user Date: Sun, 22 Feb 2026 06:38:14 +0100 Subject: [PATCH] fix: use podman containers for checkout on minimal host runner Host runner lacks git and node. Fetch repo archive via wget in alpine container, then run lint/link-check against extracted files. Single-line commands to avoid multiline escaping issues. --- .gitea/workflows/ci.yml | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9255306..e5a69d6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,29 +11,16 @@ jobs: runs-on: linux steps: - name: Checkout - run: | - git clone --depth 1 --branch "${{ github.ref_name }}" \ - "${{ github.server_url }}/${{ github.repository }}.git" workspace + run: podman run --rm -v "$PWD:/out:Z" docker.io/library/alpine:3 sh -c "wget -qO- '${{ github.server_url }}/${{ github.repository }}/archive/${{ github.ref_name }}.tar.gz' | tar xz -C /out --strip-components=1" - name: Markdown lint - run: | - podman run --rm \ - -v "$PWD/workspace:/work:Z" \ - docker.io/davidanson/markdownlint-cli2:v0.17.2 \ - "**/*.md" + run: podman run --rm -v "$PWD:/work:Z" docker.io/davidanson/markdownlint-cli2:v0.17.2 "**/*.md" link-check: runs-on: linux steps: - name: Checkout - run: | - git clone --depth 1 --branch "${{ github.ref_name }}" \ - "${{ github.server_url }}/${{ github.repository }}.git" workspace + run: podman run --rm -v "$PWD:/out:Z" docker.io/library/alpine:3 sh -c "wget -qO- '${{ github.server_url }}/${{ github.repository }}/archive/${{ github.ref_name }}.tar.gz' | tar xz -C /out --strip-components=1" - name: Check internal links - run: | - podman run --rm \ - -v "$PWD/workspace:/work:Z" \ - -w /work \ - docker.io/library/python:3.12-slim \ - python3 scripts/check-links.py + run: podman run --rm -v "$PWD:/work:Z" -w /work docker.io/library/python:3.12-slim python3 scripts/check-links.py