catch gh auth error

pull/310/head
Frostebite 2022-01-29 22:58:02 +00:00
parent 5365a2de1e
commit d02831dbe6
3 changed files with 9 additions and 3 deletions

4
dist/index.js vendored
View File

@ -3927,7 +3927,9 @@ class Input {
}
static githubToken() {
return __awaiter(this, void 0, void 0, function* () {
return Input.getInput('githubToken') || (yield github_cli_1.GithubCliReader.GetGitHubAuthToken()) || '';
return (Input.getInput('githubToken') ||
(Input.cloudRunnerCluster !== '' ? yield github_cli_1.GithubCliReader.GetGitHubAuthToken() : '') ||
'');
});
}
static gitPrivateToken() {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -161,7 +161,11 @@ class Input {
}
static async githubToken() {
return Input.getInput('githubToken') || (await GithubCliReader.GetGitHubAuthToken()) || '';
return (
Input.getInput('githubToken') ||
(Input.cloudRunnerCluster !== '' ? await GithubCliReader.GetGitHubAuthToken() : '') ||
''
);
}
static async gitPrivateToken() {