Skip to content

Commit d6c12e5

Browse files
committed
Support building a specific SHA on local branch as well
See gh-44204
1 parent afbf1ab commit d6c12e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
fetch-depth: 0
2828
- name: Rest Build Reference to SHA
2929
if: ${{ github.event.inputs.build-refname != '' && github.event.inputs.build-sha != '' }}
30-
run: git update-ref refs/remotes/origin/${{ github.event.inputs.build-refname }} ${{ github.event.inputs.build-sha }}
30+
run: |
31+
git update-ref refs/remotes/origin/${{ github.event.inputs.build-refname }} ${{ github.event.inputs.build-sha }}
32+
git update-ref refs/heads/${{ github.event.inputs.build-refname }} ${{ github.event.inputs.build-sha }}
3133
- name: Fetch Main Branch
3234
run: git fetch origin ${{ github.event.repository.default_branch }}:main
3335
- name: Set Up Node

0 commit comments

Comments
 (0)