Skip to content

Commit ec80201

Browse files
committed
gists: result.ref = refs/heads/master
1 parent 3516176 commit ec80201

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/input-helper.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ export function getInputs(): IGitSourceSettings {
7676
result.ref = `refs/heads/${result.ref}`
7777
}
7878
}
79+
80+
if (result.isGist && !result.ref && !result.commit) {
81+
result.ref = 'refs/heads/master'
82+
}
7983
}
8084
// SHA?
8185
else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {

0 commit comments

Comments
 (0)