mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-11 05:27:24 +00:00
test fork change
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
This commit is contained in:
parent
ca3e2d9612
commit
ab25b1efb3
3 changed files with 5 additions and 5 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
|
@ -32351,12 +32351,12 @@ const isPullRequestFromFork = () => {
|
||||||
return (baseLabel.split(':')[0] !== headLabel.split(':')[0]);
|
return (baseLabel.split(':')[0] !== headLabel.split(':')[0]);
|
||||||
};
|
};
|
||||||
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
|
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
|
||||||
if (isPullRequestFromFork()) {
|
let token = core.getInput('token');
|
||||||
|
if (!token && isPullRequestFromFork()) {
|
||||||
core.info('==> Fork detected, tokenless uploading used');
|
core.info('==> Fork detected, tokenless uploading used');
|
||||||
process.env['TOKENLESS'] = context.payload.pull_request.head.label;
|
process.env['TOKENLESS'] = context.payload.pull_request.head.label;
|
||||||
return Promise.resolve('');
|
return Promise.resolve('');
|
||||||
}
|
}
|
||||||
let token = core.getInput('token');
|
|
||||||
let url = core.getInput('url');
|
let url = core.getInput('url');
|
||||||
const useOIDC = isTrue(core.getInput('use_oidc'));
|
const useOIDC = isTrue(core.getInput('use_oidc'));
|
||||||
if (useOIDC) {
|
if (useOIDC) {
|
||||||
|
|
@ -32831,7 +32831,7 @@ const run = () => src_awaiter(void 0, void 0, void 0, function* () {
|
||||||
const unlink = () => {
|
const unlink = () => {
|
||||||
external_node_fs_namespaceObject.unlink(filename, (err) => {
|
external_node_fs_namespaceObject.unlink(filename, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
setFailure(`Codecov: Could not unlink uploader: ${err.message}`, failCi);
|
setFailure(`Codecov: Could not unlink: ${err.message}`, failCi);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -66,7 +66,7 @@ const run = async (): Promise<void> => {
|
||||||
fs.unlink(filename, (err) => {
|
fs.unlink(filename, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
setFailure(
|
setFailure(
|
||||||
`Codecov: Could not unlink uploader: ${err.message}`,
|
`Codecov: Could not unlink: ${err.message}`,
|
||||||
failCi,
|
failCi,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue