diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 5ab8fce..9e7b4b9 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -12,8 +12,4 @@ jobs: - name: Validate JSON, using a valid file uses: ./ with: - json-file: test/valid.json - - name: Validate JSON, using an invalid file - uses: ./ - with: - json-file: test/invalid.json + json-file: renovate.json diff --git a/action.yml b/action.yml index 3cbd9ae..d5d1657 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,6 @@ runs: - name: Extract schema shell: bash run: | - echo "Extracting schema from ${{ inputs.json-file }}" schema=$(jq -r '.["$schema"]' < ${{ inputs.json-file }}) if [ -n "$schema" ]; then curl -s $schema > schema.json @@ -24,10 +23,8 @@ runs: - name: Update the schema to the latest version shell: bash run: | - echo "Updating schema to the latest version" npx ajv-cli migrate -s schema.json -o schema.json - name: Validate JSON shell: bash run: | - echo "Validating JSON" npx ajv-cli validate -s schema.json -d ${{ inputs.json-file }} --strict=false diff --git a/test/invalid.json b/test/invalid.json deleted file mode 100644 index d712155..0000000 --- a/test/invalid.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "invalid": "invalid" -} diff --git a/test/valid.json b/test/valid.json deleted file mode 100644 index 7190a60..0000000 --- a/test/valid.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json" -}