Merge pull request #73 from morphic-bio/esv-fixes-schemaprots #32
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: Generate schema human-readable documentation | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
paths: | |
- json_schema/type/**/*.json | |
permissions: | |
contents: write | |
jobs: | |
documentationGeneration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
pip3 install -r ./src/requirements.txt | |
- name: Generate human-readable documentation | |
run: | | |
python3 ./src/generate_docs.py -s json_schema/type -o human_readable_schemas | |
- name: Commit and push docs if different | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Pushed latest schema updates | |
file_pattern: 'human_readable_schemas/*.md' |