ci: avoid JavaScript checkout on self-hosted runner
Validate skill / validate (push) Successful in 4s

This commit is contained in:
2026-08-19 08:16:21 +00:00
parent e85df2916c
commit 85d0164317
+23 -2
View File
@@ -8,7 +8,28 @@ on:
jobs: jobs:
validate: validate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: node:22-bookworm
steps: steps:
- uses: actions/checkout@v4 - name: Checkout exact revision
shell: bash
env:
GITEA_ACTIONS_TOKEN: ${{ gitea.token }}
run: |
set -euo pipefail
test -n "$GITEA_ACTIONS_TOKEN"
git init .
git remote add origin "https://gitea.lego-cloud.eu/${{ gitea.repository }}.git"
git -c "http.extraHeader=Authorization: token ${GITEA_ACTIONS_TOKEN}" fetch --depth 1 origin "${{ gitea.sha }}"
git checkout --detach FETCH_HEAD
test "$(git rev-parse HEAD)" = "${{ gitea.sha }}"
- name: Validate skill package - name: Validate skill package
run: python3 scripts/validate_skill.py shell: bash
run: |
set -euo pipefail
if ! command -v python3 >/dev/null; then
apt-get update
apt-get install -y --no-install-recommends python3
fi
python3 scripts/validate_skill.py