Browse Source

Support building a specific SHA

See gh-44204
docs-build
Phillip Webb 2 weeks ago
parent
commit
ec09f96f9b
  1. 6
      .github/workflows/deploy-docs.yml

6
.github/workflows/deploy-docs.yml

@ -6,6 +6,9 @@ on: @@ -6,6 +6,9 @@ on:
build-refname:
description: Enter git refname to build (e.g., 1.0.x).
required: false
build-sha:
description: Enter the SHA to build (e.g. 82c97891569821a7f91a77ca074232e0b54ca7a5)
required: false
build-version:
description: Enter the version being build (e.g. 1.0.3-SNAPSHOT)
required: false
@ -22,6 +25,9 @@ jobs: @@ -22,6 +25,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Rest Build Reference to SHA
if: ${{ github.event.inputs.build-refname != '' && github.event.inputs.build-refsha != '' }}
run: git update-ref refs/remotes/origin/${{ github.event.inputs.build-refname }} {{ github.event.inputs.build-sha }}
- name: Fetch Main Branch
run: git fetch origin ${{ github.event.repository.default_branch }}:main
- name: Set Up Node

Loading…
Cancel
Save