Migrate to central schemas (#17) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: json-yaml-validate | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
validate-signals: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Check out the current repository | |
- uses: actions/checkout@v4 | |
# Step 2: Check out the central schema repository | |
- name: Checkout schemas repo | |
uses: actions/checkout@v4 | |
with: | |
repository: OBDb/.schemas | |
path: .schemas | |
# Step 3: Validate with schema from the central repository | |
- name: Validate signalsets | |
id: json-yaml-validate-v3 | |
uses: GrantBirki/json-yaml-validate@v2.7.1 | |
with: | |
comment: "true" | |
base_dir: signalsets/v3/ | |
json_schema: .schemas/signals.json |