mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-21 17:12:03 +03:00
gists: result.ref = refs/heads/master
This commit is contained in:
parent
3516176a33
commit
aab364320b
2 changed files with 7 additions and 0 deletions
|
@ -76,6 +76,10 @@ export function getInputs(): IGitSourceSettings {
|
|||
result.ref = `refs/heads/${result.ref}`
|
||||
}
|
||||
}
|
||||
|
||||
if (result.isGist && !result.ref && !result.commit) {
|
||||
result.ref = 'refs/heads/master'
|
||||
}
|
||||
}
|
||||
// SHA?
|
||||
else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue