3
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2024-11-26 20:59:31 +01:00

gists: result.ref = refs/heads/master

This commit is contained in:
Daniel Hwang 2020-06-16 18:45:19 -07:00
parent 3516176a33
commit aab364320b
No known key found for this signature in database
GPG key ID: 678563C9BB0E60C0
2 changed files with 7 additions and 0 deletions

3
dist/index.js vendored
View file

@ -14518,6 +14518,9 @@ function getInputs() {
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}$/)) {

View file

@ -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}$/)) {