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.
This commit is contained in:
@@ -11,12 +11,14 @@ jobs:
|
|||||||
runs-on: linux
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- 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
|
- name: Markdown lint
|
||||||
run: |
|
run: |
|
||||||
podman run --rm \
|
podman run --rm \
|
||||||
-v "${{ github.workspace }}:/work:Z" \
|
-v "$PWD/workspace:/work:Z" \
|
||||||
docker.io/davidanson/markdownlint-cli2:v0.17.2 \
|
docker.io/davidanson/markdownlint-cli2:v0.17.2 \
|
||||||
"**/*.md"
|
"**/*.md"
|
||||||
|
|
||||||
@@ -24,12 +26,14 @@ jobs:
|
|||||||
runs-on: linux
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- 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
|
- name: Check internal links
|
||||||
run: |
|
run: |
|
||||||
podman run --rm \
|
podman run --rm \
|
||||||
-v "${{ github.workspace }}:/work:Z" \
|
-v "$PWD/workspace:/work:Z" \
|
||||||
-w /work \
|
-w /work \
|
||||||
docker.io/library/python:3.12-slim \
|
docker.io/library/python:3.12-slim \
|
||||||
python3 scripts/check-links.py
|
python3 scripts/check-links.py
|
||||||
|
|||||||
Reference in New Issue
Block a user