fix: pass in empty string

This commit is contained in:
Tom Hu 2024-05-20 18:43:11 +07:00
parent 70a4cf0e19
commit 09e1fe93a7
No known key found for this signature in database
GPG key ID: 79155678363963D2
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View file

@ -32353,7 +32353,7 @@ const isPullRequestFromFork = () => {
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
if (isPullRequestFromFork()) {
core.info('==> Fork detected, tokenless uploading used');
return Promise.resolve('');
return '';
}
let token = core.getInput('token');
let url = core.getInput('url');

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -48,7 +48,7 @@ const isPullRequestFromFork = (): boolean => {
const getToken = async (): Promise<string> => {
if (isPullRequestFromFork()) {
core.info('==> Fork detected, tokenless uploading used');
return Promise.resolve('');
return '';
}
let token = core.getInput('token');
let url = core.getInput('url');