name: Validate skill on: push: branches: [main] pull_request: jobs: validate: runs-on: ubuntu-latest container: image: node:22-bookworm steps: - 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 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