mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-15 07:27:24 +00:00
fix: dont even check
This commit is contained in:
parent
bdd438a538
commit
036b81c4b4
3 changed files with 21 additions and 27 deletions
23
dist/index.js
vendored
23
dist/index.js
vendored
|
|
@ -32595,19 +32595,16 @@ const getCommand = (filename, generalArgs, command) => {
|
||||||
return fullCommand;
|
return fullCommand;
|
||||||
};
|
};
|
||||||
const setSafeDirectory = () => __awaiter(void 0, void 0, void 0, function* () {
|
const setSafeDirectory = () => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
const isSafe = yield exec.exec('git config --get safe.directory');
|
const command = ([
|
||||||
if (!isSafe) {
|
'git',
|
||||||
const command = ([
|
'config',
|
||||||
'git',
|
'--global',
|
||||||
'config',
|
'--add',
|
||||||
'--global',
|
'safe.directory',
|
||||||
'--add',
|
`${process.env['GITHUB_WORKSPACE']}`,
|
||||||
'safe.directory',
|
].join(' '));
|
||||||
`${process.env['GITHUB_WORKSPACE']}`,
|
core.info(`==> Running ${command}`);
|
||||||
].join(' '));
|
yield exec.exec(command);
|
||||||
core.info(`==> Running ${command}`);
|
|
||||||
yield exec.exec(command);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -66,19 +66,16 @@ const getCommand = (
|
||||||
};
|
};
|
||||||
|
|
||||||
const setSafeDirectory = async () => {
|
const setSafeDirectory = async () => {
|
||||||
const isSafe = await exec.exec('git config --get safe.directory');
|
const command = ([
|
||||||
if (!isSafe) {
|
'git',
|
||||||
const command = ([
|
'config',
|
||||||
'git',
|
'--global',
|
||||||
'config',
|
'--add',
|
||||||
'--global',
|
'safe.directory',
|
||||||
'--add',
|
`${process.env['GITHUB_WORKSPACE']}`,
|
||||||
'safe.directory',
|
].join(' '));
|
||||||
`${process.env['GITHUB_WORKSPACE']}`,
|
core.info(`==> Running ${command}`);
|
||||||
].join(' '));
|
await exec.exec(command);
|
||||||
core.info(`==> Running ${command}`);
|
|
||||||
await exec.exec(command);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue