We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4329428 commit 0e7766cCopy full SHA for 0e7766c
src/github.ts
@@ -8,7 +8,10 @@ let once = false;
8
9
function getClient(): InstanceType<typeof GitHub> {
10
if (once) return octokit;
11
- const token = getInput("token") || process.env["GITHUB_TOKEN"] || "";
+ let token = getInput("token");
12
+ if (!token) {
13
+ token = process.env["GITHUB_TOKEN"] || "";
14
+ }
15
setSecret(token);
16
17
octokit = getOctokit(token);
0 commit comments