mirror of
https://code.forgejo.org/actions/checkout
synced 2024-11-24 10:00:39 +00:00
in input-helper, make ref fallback to commit if the commit was provided but not ref
Signed-off-by: James Bradlee <james.bradlee@telenor.no>
This commit is contained in:
parent
67b5caa109
commit
8a241b5b4d
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ export async function getInputs(): Promise<IGitSourceSettings> {
|
||||||
|
|
||||||
// Source branch, source version
|
// Source branch, source version
|
||||||
result.commit = core.getInput('commit')
|
result.commit = core.getInput('commit')
|
||||||
result.ref = core.getInput('ref')
|
result.ref = core.getInput('ref') ?? result.commit
|
||||||
if (!result.ref) {
|
if (!result.ref) {
|
||||||
if (isWorkflowRepository) {
|
if (isWorkflowRepository) {
|
||||||
result.ref = github.context.ref
|
result.ref = github.context.ref
|
||||||
|
|
Loading…
Reference in a new issue