From fbea5eb0034271c8f43856d55b8ad8f68c13615f Mon Sep 17 00:00:00 2001 From: Tatevik Date: Sun, 9 Mar 2025 21:26:53 +0400 Subject: [PATCH] Fix restapi-docs file location --- .github/workflows/restapi-docs.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/restapi-docs.yml b/.github/workflows/restapi-docs.yml index ef4e2ea..932776a 100644 --- a/.github/workflows/restapi-docs.yml +++ b/.github/workflows/restapi-docs.yml @@ -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 @@ -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 @@ -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 "github-actions@restapi-docs.workflow" git add restapi.json