Support building a specific SHA

See gh-44204
This commit is contained in:
Phillip Webb
2025-12-01 16:51:23 -08:00
parent 829c789815
commit ec09f96f9b
+6
View File
@@ -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:
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