refactor: to node action
CI / Test (pull_request) Successful in 15s
CI / Dry-Run (pull_request) Failing after 20s
CI / Check Dist (pull_request) Failing after 9s

This commit is contained in:
2026-06-27 13:32:05 +02:00
parent 3730a56a77
commit 37a8abab0e
19 changed files with 30547 additions and 173 deletions
+2 -23
View File
@@ -8,26 +8,5 @@ inputs:
required: true
runs:
using: "composite"
steps:
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "latest"
- name: Extract schema
shell: bash
run: |
schema=$(jq -r '.["$schema"]' < ${{ inputs.json-file }})
if [ -n "$schema" ]; then
curl -s $schema > schema.json
else
echo "No schema found"
exit 0
fi
- name: Update the schema to the latest version
shell: bash
run: |
npx ajv-cli migrate -s schema.json -o schema.json
- name: Validate JSON
shell: bash
run: |
npx ajv-cli validate -s schema.json -d ${{ inputs.json-file }} --strict=false
using: "node24"
main: "dist/index.js"