Skip to content

Commit 0e7766c

Browse files
committed
fix: empty input
1 parent 4329428 commit 0e7766c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/github.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ let once = false;
88

99
function getClient(): InstanceType<typeof GitHub> {
1010
if (once) return octokit;
11-
const token = getInput("token") || process.env["GITHUB_TOKEN"] || "";
11+
let token = getInput("token");
12+
if (!token) {
13+
token = process.env["GITHUB_TOKEN"] || "";
14+
}
1215
setSecret(token);
1316

1417
octokit = getOctokit(token);

0 commit comments

Comments
 (0)