fix: dont even check

This commit is contained in:
Tom Hu 2024-02-23 16:47:00 -08:00
parent bdd438a538
commit 036b81c4b4
No known key found for this signature in database
GPG key ID: 79155678363963D2
3 changed files with 21 additions and 27 deletions

23
dist/index.js vendored
View file

@ -32595,19 +32595,16 @@ const getCommand = (filename, generalArgs, command) => {
return fullCommand;
};
const setSafeDirectory = () => __awaiter(void 0, void 0, void 0, function* () {
const isSafe = yield exec.exec('git config --get safe.directory');
if (!isSafe) {
const command = ([
'git',
'config',
'--global',
'--add',
'safe.directory',
`${process.env['GITHUB_WORKSPACE']}`,
].join(' '));
core.info(`==> Running ${command}`);
yield exec.exec(command);
}
const command = ([
'git',
'config',
'--global',
'--add',
'safe.directory',
`${process.env['GITHUB_WORKSPACE']}`,
].join(' '));
core.info(`==> Running ${command}`);
yield exec.exec(command);
});

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -66,19 +66,16 @@ const getCommand = (
};
const setSafeDirectory = async () => {
const isSafe = await exec.exec('git config --get safe.directory');
if (!isSafe) {
const command = ([
'git',
'config',
'--global',
'--add',
'safe.directory',
`${process.env['GITHUB_WORKSPACE']}`,
].join(' '));
core.info(`==> Running ${command}`);
await exec.exec(command);
}
const command = ([
'git',
'config',
'--global',
'--add',
'safe.directory',
`${process.env['GITHUB_WORKSPACE']}`,
].join(' '));
core.info(`==> Running ${command}`);
await exec.exec(command);
};
export {