From 3d873449e14626c6e1926913208450815acfdd51 Mon Sep 17 00:00:00 2001 From: JakeSCahill Date: Fri, 15 Nov 2024 09:51:11 +0000 Subject: [PATCH] Add link to commit that triggered the Cloud API spe update --- .github/workflows/get-cloud-api-spec.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/get-cloud-api-spec.yml b/.github/workflows/get-cloud-api-spec.yml index 555bd68068..0f3e04cf67 100644 --- a/.github/workflows/get-cloud-api-spec.yml +++ b/.github/workflows/get-cloud-api-spec.yml @@ -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 @@ -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