Skip to content
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
9 changes: 6 additions & 3 deletions .github/workflows/get-cloud-api-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,23 @@ 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}"
echo "COMMIT_SHA=${COMMIT_SHA}" >> $GITHUB_ENV
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
Expand All @@ -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
reviewers: JakeSCahill, kbatuigas