mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 12:37:26 +00:00
fix: more core info
This commit is contained in:
parent
9faeaca720
commit
7f15ca6a06
3 changed files with 8 additions and 1 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
|
@ -32569,6 +32569,9 @@ const isFork = () => {
|
|||
return (baseLabel.split(':')[0] !== headLabel.split(':')[0]);
|
||||
};
|
||||
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) {
|
||||
core.info('==> Fork detected, tokenless uploading used');
|
||||
return Promise.resolve('');
|
||||
|
|
|
|||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -38,6 +38,10 @@ const isFork = (): boolean => {
|
|||
};
|
||||
|
||||
const getToken = async (): Promise<string> => {
|
||||
const baseLabel = context.payload.pull_request.base.label;
|
||||
const headLabel = context.payload.pull_request.head.label;
|
||||
|
||||
core.info(`base: ${baseLabel} | head: ${headLabel}`);
|
||||
if (isFork) {
|
||||
core.info('==> Fork detected, tokenless uploading used');
|
||||
return Promise.resolve('');
|
||||
|
|
|
|||
Loading…
Reference in a new issue