gists: result.ref = refs/heads/master

pull/262/head
Daniel Hwang 5 years ago
parent 3516176a33
commit aab364320b
No known key found for this signature in database
GPG Key ID: 678563C9BB0E60C0

3
dist/index.js vendored

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

@ -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…
Cancel
Save