Skip to content

Commit 701d076

Browse files
authored
Fix GitHub Action (#9)
* Fix GitHub Action * Update get-cloud-api-spec.yaml * Update get-cloud-api-spec.yaml
1 parent ad762c0 commit 701d076

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/get-cloud-api-spec.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,23 @@ jobs:
3636

3737
- name: Get commit SHA and build URL
3838
id: commit-info
39+
working-directory: redpanda-docs
3940
run: |
4041
COMMIT_SHA="${{ github.event.client_payload.commit_sha }}"
4142
COMMIT_URL="https://github.com/redpanda-data/cloudv2/commit/${COMMIT_SHA}"
4243
echo "COMMIT_SHA=${COMMIT_SHA}" >> $GITHUB_ENV
4344
echo "COMMIT_URL=${COMMIT_URL}" >> $GITHUB_ENV
4445
4546
- name: Install dependencies
47+
working-directory: redpanda-docs
4648
run: |
4749
npm install
4850
4951
- name: Run the script and save the output
52+
working-directory: redpanda-docs
5053
run: |
51-
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
52-
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
54+
npx doc-tools fetch -o redpanda-data -r cloudv2 -p proto/gen/openapi/openapi.controlplane.prod.yaml -d cloud-controlplane -f cloud-controlplane.yaml
55+
npx doc-tools fetch -o redpanda-data -r cloudv2 -p proto/gen/openapi/openapi.dataplane.prod.yaml -d cloud-dataplane -f cloud-dataplane.yaml
5356
env:
5457
VBOT_GITHUB_API_TOKEN: ${{ env.ACTIONS_BOT_TOKEN }}
5558
- name: Create pull request
@@ -64,4 +67,4 @@ jobs:
6467
This PR updates the OpenAPI spec file for the Cloud API.
6568
Triggered by commit: [${{ env.COMMIT_SHA }}](${{ env.COMMIT_URL }})
6669
labels: auto-docs
67-
reviewers: JakeSCahill, kbatuigas
70+
reviewers: JakeSCahill, kbatuigas

0 commit comments

Comments
 (0)