From 18595e557b9f9efb985ea653fd91258e58d1dc4f Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 1 Dec 2025 17:07:33 -0800 Subject: [PATCH] Trigger docs build with specific SHA Closes gh-44204 --- .github/workflows/build-and-deploy-snapshot.yml | 2 +- .github/workflows/trigger-docs-build.yml | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-deploy-snapshot.yml b/.github/workflows/build-and-deploy-snapshot.yml index b3e6345dcd0..e0ae8093a54 100644 --- a/.github/workflows/build-and-deploy-snapshot.yml +++ b/.github/workflows/build-and-deploy-snapshot.yml @@ -60,7 +60,7 @@ jobs: - name: Run Deploy Docs Workflow env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh workflow run deploy-docs.yml --repo ${{ github.repository }} -r docs-build -f build-refname=${{ github.ref_name }} -f build-version=${{ needs.build-and-deploy-snapshot.outputs.version }} + run: gh workflow run deploy-docs.yml --repo ${{ github.repository }} -r docs-build -f build-sha=${{ github.sha }} -f build-refname=${{ github.ref_name }} -f build-version=${{ needs.build-and-deploy-snapshot.outputs.version }} verify: name: Verify needs: build-and-deploy-snapshot diff --git a/.github/workflows/trigger-docs-build.yml b/.github/workflows/trigger-docs-build.yml index ba1d846dd7b..db7272a322e 100644 --- a/.github/workflows/trigger-docs-build.yml +++ b/.github/workflows/trigger-docs-build.yml @@ -5,12 +5,16 @@ on: paths: [ 'antora/*' ] workflow_dispatch: inputs: + build-version: + description: 'Version being build (e.g. 1.0.3-SNAPSHOT)' + required: false + build-sha: + description: Enter the SHA to build (e.g. 82c97891569821a7f91a77ca074232e0b54ca7a5) + required: false build-refname: description: 'Git refname to build (e.g., 1.0.x)' required: false - build-version: - description: 'Version being build (e.g. 1.0.3-SNAPSHOT)' - required: false + permissions: contents: read jobs: @@ -28,4 +32,4 @@ jobs: - name: Trigger Workflow env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh workflow run deploy-docs.yml -r docs-build -f build-refname=${{ github.event.inputs.build-refname }} -f build-version=${{ github.event.inputs.build-version }} + run: gh workflow run deploy-docs.yml -r docs-build -f build-refname=${{ github.event.inputs.build-refname }} -f build-sha=${{ github.event.inputs.build-sha }} -f build-version=${{ github.event.inputs.build-version }}