Skip to content

Commit

Permalink
Merge pull request #9 from Qwizi/fix-w
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Qwizi committed Apr 19, 2024
2 parents fa48634 + 4d5eb62 commit 84b4ba1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/generate-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@ jobs:
python-version: 3.11
- name: "Install the project"
run: "poetry install"
- name: Generate Schema
run: |
cd src
poetry run python manage.py spectacular --file openapi.json --validate --format openapi-json
echo "Schema generated"
- name: Install jq
run: |
sudo apt-get update
sudo apt-get install -y jq
- name: Get version from openapi.json
- name: Generate Schema
run: |
cd src
poetry run python manage.py spectacular --file openapi.json --validate --format openapi-json
echo "Schema generated"
VERSION=$(jq -r .info.version openapi.json)
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
- name: Commit and push changes
Expand Down

0 comments on commit 84b4ba1

Please sign in to comment.