mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-04 14:21:33 +02:00
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)
20 lines
389 B
YAML
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
|