mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-28 13:09:09 +00:00
Support building a specific SHA
See gh-44204
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user