Skip to content

Commit

Permalink
Merge pull request #200 from CanDIG/sonchau/hotfix_github_action
Browse files Browse the repository at this point in the history
DIG-1625: Fix Documentation GitHub action
  • Loading branch information
daisieh authored May 2, 2024
2 parents 043f103 + 4cca2fc commit 90f545d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Set up Python
with:
python-version: '3.12'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/update-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"

Expand All @@ -32,13 +32,15 @@ jobs:
- name: Generate new schema.json
run: |
export DJANGO_SETTINGS_MODULE=config.settings.base
echo "CACHE_DURATION = 0" >> config/settings/base.py
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: Commit new schema.json
uses: stefanzweifel/git-auto-commit-action@v5
id: auto-commit-action
with:
commit_message: Update schema.json
file_pattern: 'chord_metadata_service/mohpackets/docs/schema.json'

- name: Update schema.json with new SHA
if: steps.auto-commit-action.outputs.changes_detected == 'true'
Expand All @@ -65,3 +67,4 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update schemas with SHA
file_pattern: 'chord_metadata_service/mohpackets/docs/schema.json chord_metadata_service/mohpackets/docs/schema.md chord_metadata_service/mohpackets/docs/schema.yml '
2 changes: 1 addition & 1 deletion config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@
# CURRENT KATSU VERSION ACCORDING TO MODEL CHANGES
# ------------------------------------------------

KATSU_VERSION = "4.2.0"
KATSU_VERSION = "4.2.1"

0 comments on commit 90f545d

Please sign in to comment.