Skip to content

Update action yaml

Update action yaml #1

Workflow file for this run

name: Markdown and JSON validation
on: [pull_request]
jobs:
validate-markdown-links:
name: Linkspector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true
validate-json-schema:
name: Validate JSON schema
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for any changed json schema files
id: check-for-changed-schemas
uses: tj-actions/changed-files@v41
with:
files: |
json-schema/**.json
- name: Validate JSON Schema
if: steps.check-for-changed-schemas.outputs.any_changed == 'true'
uses: dsanders11/json-schema-validate-action
with:
schema: https://json-schema.org/draft/2020-12/schema
files: json-schema/**.json