Skip to content

update welcome guide for play #491

update welcome guide for play

update welcome guide for play #491

Workflow file for this run

name: Validate JSON
on:
push:
pull_request:
workflow_dispatch:
jobs:
validate-json:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
submodules: false
- name: Checkout validation scripts from main
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
ref: main
sparse-checkout: |
.github/scripts/
sparse-checkout-cone-mode: false
path: .github-trusted
persist-credentials: false
- name: Validate index.json
run: |
echo "Validating index.json for well-formed JSON..."
# Check if index.json exists
if [ ! -f "index.json" ]; then
echo "❌ Error: index.json file not found"
exit 1
fi
# Validate JSON using the validation script
python3 .github-trusted/.github/scripts/validate_json.py index.json
if [ $? -eq 0 ]; then
echo "🎉 All validations passed! index.json is well-formed and properly structured."
else
echo "❌ JSON validation failed!"
exit 1
fi