mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-14 15:07:25 +00:00
fix: make it blank
This commit is contained in:
parent
0c58b1bd72
commit
33d849f88e
3 changed files with 5 additions and 5 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -32340,7 +32340,7 @@ const getGitService = () => {
|
||||||
return 'github';
|
return 'github';
|
||||||
};
|
};
|
||||||
const isPullRequestFromFork = () => {
|
const isPullRequestFromFork = () => {
|
||||||
core.info(`evenName: ${context.eventName}`);
|
core.info(`eventName: ${context.eventName}`);
|
||||||
if (`${context.eventName}` !== 'pull_request' &&
|
if (`${context.eventName}` !== 'pull_request' &&
|
||||||
`${context.eventName}` !== 'pull_request_target') {
|
`${context.eventName}` !== 'pull_request_target') {
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -32353,7 +32353,7 @@ const isPullRequestFromFork = () => {
|
||||||
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
|
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
|
||||||
if (isPullRequestFromFork()) {
|
if (isPullRequestFromFork()) {
|
||||||
core.info('==> Fork detected, tokenless uploading used');
|
core.info('==> Fork detected, tokenless uploading used');
|
||||||
return Promise.resolve('tokenless');
|
return Promise.resolve('');
|
||||||
}
|
}
|
||||||
let token = core.getInput('token');
|
let token = core.getInput('token');
|
||||||
let url = core.getInput('url');
|
let url = core.getInput('url');
|
||||||
|
|
|
||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -30,7 +30,7 @@ const getGitService = (): string => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const isPullRequestFromFork = (): boolean => {
|
const isPullRequestFromFork = (): boolean => {
|
||||||
core.info(`evenName: ${context.eventName}`);
|
core.info(`eventName: ${context.eventName}`);
|
||||||
if (
|
if (
|
||||||
`${context.eventName}` !== 'pull_request' &&
|
`${context.eventName}` !== 'pull_request' &&
|
||||||
`${context.eventName}` !== 'pull_request_target'
|
`${context.eventName}` !== 'pull_request_target'
|
||||||
|
|
@ -48,7 +48,7 @@ const isPullRequestFromFork = (): boolean => {
|
||||||
const getToken = async (): Promise<string> => {
|
const getToken = async (): Promise<string> => {
|
||||||
if (isPullRequestFromFork()) {
|
if (isPullRequestFromFork()) {
|
||||||
core.info('==> Fork detected, tokenless uploading used');
|
core.info('==> Fork detected, tokenless uploading used');
|
||||||
return Promise.resolve('tokenless');
|
return Promise.resolve('');
|
||||||
}
|
}
|
||||||
let token = core.getInput('token');
|
let token = core.getInput('token');
|
||||||
let url = core.getInput('url');
|
let url = core.getInput('url');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue