Skip to content

Commit aab3643

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

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

dist/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14518,6 +14518,9 @@ function getInputs() {
1451814518
result.ref = `refs/heads/${result.ref}`;
1451914519
}
1452014520
}
14521+
if (result.isGist && !result.ref && !result.commit) {
14522+
result.ref = 'refs/heads/master';
14523+
}
1452114524
}
1452214525
// SHA?
1452314526
else if (result.ref.match(/^[0-9a-fA-F]{40}$/)) {

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)