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

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');