Skip to content

Commit

Permalink
Update regenerate-schema.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SonQBChau committed Nov 30, 2023
1 parent 641f337 commit 26bb86b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/regenerate-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
- name: Install PyYAML
run: pip install PyYAML

- name: Generate new schema.json
run: |
export DJANGO_SETTINGS_MODULE=config.settings.base
python manage.py export_openapi_schema --api chord_metadata_service.mohpackets.apis.core.api | python -m json.tool > chord_metadata_service/mohpackets/docs/schema.json
# - name: Generate new schema.json
# run: |
# export DJANGO_SETTINGS_MODULE=config.settings.base
# python manage.py export_openapi_schema --api chord_metadata_service.mohpackets.apis.core.api | python -m json.tool > chord_metadata_service/mohpackets/docs/schema.json

# - name: Convert schema to OpenAPI documentation
# run: |
Expand All @@ -57,6 +57,5 @@ jobs:

- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.head_ref }}
file_pattern: 'chord_metadata_service/mohpackets/docs/schema.*'
commit_message: Regenerate schema

0 comments on commit 26bb86b

Please sign in to comment.