Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC-755 Add link to commit that triggered the Cloud API spec update #861

Merged
merged 1 commit into from
Nov 15, 2024
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
12 changes: 11 additions & 1 deletion .github/workflows/get-cloud-api-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ jobs:
path: redpanda-docs
token: ${{ env.ACTIONS_BOT_TOKEN }}

- name: Get commit SHA and build URL
id: commit-info
run: |
COMMIT_SHA="${{ github.event.client_payload.commit_sha }}"
COMMIT_URL="https://github.com/${{ github.event.repository.full_name }}/commit/${COMMIT_SHA}"
echo "COMMIT_SHA=${COMMIT_SHA}" >> $GITHUB_ENV
echo "COMMIT_URL=${COMMIT_URL}" >> $GITHUB_ENV

- name: Install dependencies
run: |
cd ./redpanda-docs/scripts/fetch-from-github
Expand All @@ -53,6 +61,8 @@ jobs:
path: redpanda-docs
branch: update-branch-api
title: "auto-docs: Update Cloud API spec"
body: "This PR updates the OpenAPI spec file for the Cloud API."
body: |
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