diff --git a/.github/workflows/get-cloud-api-spec.yaml b/.github/workflows/get-cloud-api-spec.yaml index 57eaaef..9751897 100644 --- a/.github/workflows/get-cloud-api-spec.yaml +++ b/.github/workflows/get-cloud-api-spec.yaml @@ -36,6 +36,7 @@ jobs: - name: Get commit SHA and build URL id: commit-info + working-directory: redpanda-docs run: | COMMIT_SHA="${{ github.event.client_payload.commit_sha }}" COMMIT_URL="https://github.com/redpanda-data/cloudv2/commit/${COMMIT_SHA}" @@ -43,13 +44,15 @@ jobs: echo "COMMIT_URL=${COMMIT_URL}" >> $GITHUB_ENV - name: Install dependencies + working-directory: redpanda-docs run: | npm install - name: Run the script and save the output + working-directory: redpanda-docs run: | - npx doc-tools fetch -o redpanda-data -r cloudv2 -p proto/gen/openapi/openapi.controlplane.prod.yaml -d ../../modules/ROOT/attachments cloud-controlplane-api.yaml - npx doc-tools fetch -o redpanda-data -r cloudv2 -p proto/gen/openapi/openapi.dataplane.prod.yaml -d ../../modules/ROOT/attachments cloud-dataplane-api.yaml + npx doc-tools fetch -o redpanda-data -r cloudv2 -p proto/gen/openapi/openapi.controlplane.prod.yaml -d cloud-controlplane -f cloud-controlplane.yaml + npx doc-tools fetch -o redpanda-data -r cloudv2 -p proto/gen/openapi/openapi.dataplane.prod.yaml -d cloud-dataplane -f cloud-dataplane.yaml env: VBOT_GITHUB_API_TOKEN: ${{ env.ACTIONS_BOT_TOKEN }} - name: Create pull request @@ -64,4 +67,4 @@ jobs: This PR updates the OpenAPI spec file for the Cloud API. Triggered by commit: [${{ env.COMMIT_SHA }}](${{ env.COMMIT_URL }}) labels: auto-docs - reviewers: JakeSCahill, kbatuigas \ No newline at end of file + reviewers: JakeSCahill, kbatuigas