Files
howtos/.gitea/workflows/ci.yml
user 9e652d76e6
Some checks failed
CI / lint (push) Failing after 1s
CI / link-check (push) Failing after 1s
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.
2026-02-22 06:35:09 +01:00

40 lines
971 B
YAML

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
runs-on: linux
steps:
- name: Checkout
run: |
git clone --depth 1 --branch "${{ github.ref_name }}" \
"${{ github.server_url }}/${{ github.repository }}.git" workspace
- name: Markdown lint
run: |
podman run --rm \
-v "$PWD/workspace:/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
- 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