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 aab3643
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -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}$/)) {
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 aab3643

Please sign in to comment.