Support building a specific SHA on local branch as well

See gh-44204
This commit is contained in:
Phillip Webb
2025-12-01 17:49:25 -08:00
parent afbf1abd8b
commit d6c12e5b89
+3 -1
View File
@@ -27,7 +27,9 @@ jobs:
fetch-depth: 0
- name: Rest Build Reference to SHA
if: ${{ github.event.inputs.build-refname != '' && github.event.inputs.build-sha != '' }}
run: git update-ref refs/remotes/origin/${{ github.event.inputs.build-refname }} ${{ github.event.inputs.build-sha }}
run: |
git update-ref refs/remotes/origin/${{ github.event.inputs.build-refname }} ${{ github.event.inputs.build-sha }}
git update-ref refs/heads/${{ 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