From 7b9bee0ccac132e5c4e8c54655f72567fa18502f Mon Sep 17 00:00:00 2001 From: Jake Cahill <45230295+JakeSCahill@users.noreply.github.com> Date: Thu, 24 Jul 2025 13:41:54 +0100 Subject: [PATCH 1/3] Fix GitHub Action --- .github/workflows/get-cloud-api-spec.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/get-cloud-api-spec.yaml b/.github/workflows/get-cloud-api-spec.yaml index 57eaaef..202d95c 100644 --- a/.github/workflows/get-cloud-api-spec.yaml +++ b/.github/workflows/get-cloud-api-spec.yaml @@ -35,6 +35,7 @@ jobs: token: ${{ env.ACTIONS_BOT_TOKEN }} - name: Get commit SHA and build URL + working-directory: redpanda-docs id: commit-info run: | COMMIT_SHA="${{ github.event.client_payload.commit_sha }}" @@ -43,10 +44,12 @@ 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 @@ -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 From 179bf6e80a8c35a964a6c17f3dfc65ab3584f018 Mon Sep 17 00:00:00 2001 From: Jake Cahill <45230295+JakeSCahill@users.noreply.github.com> Date: Thu, 24 Jul 2025 15:40:28 +0100 Subject: [PATCH 2/3] Update get-cloud-api-spec.yaml --- .github/workflows/get-cloud-api-spec.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/get-cloud-api-spec.yaml b/.github/workflows/get-cloud-api-spec.yaml index 202d95c..527dcb0 100644 --- a/.github/workflows/get-cloud-api-spec.yaml +++ b/.github/workflows/get-cloud-api-spec.yaml @@ -51,8 +51,8 @@ jobs: - 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 ../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 env: VBOT_GITHUB_API_TOKEN: ${{ env.ACTIONS_BOT_TOKEN }} - name: Create pull request From 74c0b42eef060b68f49084bda9aceb787ba54025 Mon Sep 17 00:00:00 2001 From: Jake Cahill <45230295+JakeSCahill@users.noreply.github.com> Date: Thu, 24 Jul 2025 18:36:49 +0100 Subject: [PATCH 3/3] Update get-cloud-api-spec.yaml --- .github/workflows/get-cloud-api-spec.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/get-cloud-api-spec.yaml b/.github/workflows/get-cloud-api-spec.yaml index 527dcb0..9751897 100644 --- a/.github/workflows/get-cloud-api-spec.yaml +++ b/.github/workflows/get-cloud-api-spec.yaml @@ -35,8 +35,8 @@ jobs: token: ${{ env.ACTIONS_BOT_TOKEN }} - name: Get commit SHA and build URL - working-directory: redpanda-docs 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}" @@ -51,8 +51,8 @@ jobs: - 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