Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix restapi-docs file location #144

Merged
merged 1 commit into from
Mar 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/restapi-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
run: composer install --no-interaction --prefer-dist

- name: Generate OpenAPI Specification JSON
run: vendor/bin/openapi -o latest-restapi.json --format json src
run: vendor/bin/openapi -o docs/latest-restapi.json --format json src

- name: Upload REST API Specification
uses: actions/upload-artifact@v4
with:
name: restapi-json
path: latest-restapi.json
path: docs/latest-restapi.json

deploy-docs:
name: Deploy REST API Specification
Expand Down Expand Up @@ -66,10 +66,10 @@ jobs:
path: docs

- name: Validate OpenAPI Specification
run: swagger-cli validate latest-restapi.json
run: swagger-cli validate docs/latest-restapi.json

- name: Compare Specifications
run: git diff --no-index --output=restapi-diff.txt latest-restapi.json restapi.json || true
run: git diff --no-index --output=restapi-diff.txt docs/latest-restapi.json restapi.json || true

- name: Check Differences and Decide Deployment
id: allow-deploy
Expand All @@ -85,7 +85,7 @@ jobs:
- name: Commit and Deploy Updates
if: env.DEPLOY == 'true'
run: |
mv latest-restapi.json restapi.json
mv docs/latest-restapi.json restapi.json
git config user.name "github-actions"
git config user.email "[email protected]"
git add restapi.json
Expand Down
Loading