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