fix: run the func

This commit is contained in:
Tom Hu 2024-04-30 17:33:59 +08:00
parent 7f15ca6a06
commit c690ee9cc4
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

@ -32572,7 +32572,7 @@ const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
const baseLabel = context.payload.pull_request.base.label;
const headLabel = context.payload.pull_request.head.label;
core.info(`base: ${baseLabel} | head: ${headLabel}`);
if (isFork) {
if (isFork()) {
core.info('==> Fork detected, tokenless uploading used');
return Promise.resolve('');
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -42,7 +42,7 @@ const getToken = async (): Promise<string> => {
const headLabel = context.payload.pull_request.head.label;
core.info(`base: ${baseLabel} | head: ${headLabel}`);
if (isFork) {
if (isFork()) {
core.info('==> Fork detected, tokenless uploading used');
return Promise.resolve('');
}