Merge remote-tracking branch 'actions/master' into gist

This commit is contained in:
Daniel Hwang 2020-06-16 18:41:02 -07:00
commit 3516176a33
No known key found for this signature in database
GPG key ID: 678563C9BB0E60C0
9 changed files with 85 additions and 19 deletions

View file

@ -76,10 +76,6 @@ export function getInputs(): IGitSourceSettings {
result.ref = `refs/heads/${result.ref}`
}
}
if (!result.ref && !result.commit) {
result.ref = 'refs/heads/master'
}
}
// SHA?
else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {
@ -118,7 +114,7 @@ export function getInputs(): IGitSourceSettings {
core.debug(`recursive submodules = ${result.nestedSubmodules}`)
// Auth token
result.authToken = core.getInput('token')
result.authToken = core.getInput('token', {required: true})
// SSH
result.sshKey = core.getInput('ssh-key')