Updates for first NCN #3
Workflow file for this run
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: Verify content frontmatter | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install jsonschema | |
pip install click | |
- name: Verify Event Post Schema | |
run: python ./scripts/verify_post.py --schema ./scripts/schemas/event.json content/events/20*.md | |
- name: Verify Profile Post Schema | |
run: python ./scripts/verify_post.py --schema ./scripts/schemas/profiles.json content/about/*.md |