external-dns/.github/workflows/json-yaml-validate.yml
Raffaele Di Fazio 71215a34e9 Replace GrantBirki/json-yaml-validate action with shell script
Replace the third-party GitHub Action with a simple bash script that
uses python3 json.tool and yq (both pre-installed on GitHub runners).

- No external dependencies or pip installs needed
- Same exclusions (Helm templates, mkdocs.yml)
- yq handles multi-document YAML files natively
- Drops PR comment feature (CI output still shows failures clearly)
- Removes pull-requests:write permission (no longer needed)
2026-03-27 16:15:13 +01:00

20 lines
389 B
YAML

name: json-yaml-validate
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
permissions:
contents: read
jobs:
json-yaml-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Validate JSON and YAML
run: bash scripts/validate-json-yaml.sh