Skip to content

Commit

Permalink
gists: result.ref = refs/heads/master
Browse files Browse the repository at this point in the history
  • Loading branch information
gnawhleinad committed Jun 17, 2020
1 parent 3516176 commit ec80201
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/input-helper.ts
Original file line number Diff line number Diff line change
@@ -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}$/)) {

0 comments on commit ec80201

Please sign in to comment.