Skip to content

Commit ec09f96

Browse files
committed
Support building a specific SHA
See gh-44204
1 parent 829c789 commit ec09f96

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
build-refname:
77
description: Enter git refname to build (e.g., 1.0.x).
88
required: false
9+
build-sha:
10+
description: Enter the SHA to build (e.g. 82c97891569821a7f91a77ca074232e0b54ca7a5)
11+
required: false
912
build-version:
1013
description: Enter the version being build (e.g. 1.0.3-SNAPSHOT)
1114
required: false
@@ -22,6 +25,9 @@ jobs:
2225
uses: actions/checkout@v4
2326
with:
2427
fetch-depth: 0
28+
- name: Rest Build Reference to SHA
29+
if: ${{ github.event.inputs.build-refname != '' && github.event.inputs.build-refsha != '' }}
30+
run: git update-ref refs/remotes/origin/${{ github.event.inputs.build-refname }} {{ github.event.inputs.build-sha }}
2531
- name: Fetch Main Branch
2632
run: git fetch origin ${{ github.event.repository.default_branch }}:main
2733
- name: Set Up Node

0 commit comments

Comments
 (0)