Skip to content

Added Workflow to verify ambassaor.json schema #9

Added Workflow to verify ambassaor.json schema

Added Workflow to verify ambassaor.json schema #9

name: Validate Ambassadors JSON
on:
push:
paths:
- 'programs/ambassadors/ambassadors.json'
pull_request:
paths:
- 'programs/ambassadors/ambassadors.json'
jobs:
validate-json:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install Dependencies
run: npm install ajv
- name: List directory contents
run: ls -R
- name: Validate ambassadors.json
run: |
node utils/validate-ambassadors.js