Deploy Production Code for Commit 273c87e514 🚀

This commit is contained in:
James Ives 2022-04-23 19:52:53 +00:00
parent 273c87e514
commit e90f003523

View File

@ -26,12 +26,15 @@ function init(action) {
try { try {
(0, core_1.info)(`Deploying using ${action.tokenType}… 🔑`); (0, core_1.info)(`Deploying using ${action.tokenType}… 🔑`);
(0, core_1.info)('Configuring git…'); (0, core_1.info)('Configuring git…');
try { // try {
yield (0, execute_1.execute)(`git config --global --add safe.directory "${action.workspace}"`, action.workspace, action.silent); // await execute(
} // `git config --global --add safe.directory "${action.workspace}"`,
catch (_a) { // action.workspace,
(0, core_1.info)('Unable to set workspace as a safe directory…'); // action.silent
} // )
// } catch {
// info('Unable to set workspace as a safe directory…')
// }
yield (0, execute_1.execute)(`git config user.name "${action.name}"`, action.workspace, action.silent); yield (0, execute_1.execute)(`git config user.name "${action.name}"`, action.workspace, action.silent);
yield (0, execute_1.execute)(`git config user.email "${action.email}"`, action.workspace, action.silent); yield (0, execute_1.execute)(`git config user.email "${action.email}"`, action.workspace, action.silent);
yield (0, execute_1.execute)(`git config core.ignorecase false`, action.workspace, action.silent); yield (0, execute_1.execute)(`git config core.ignorecase false`, action.workspace, action.silent);
@ -46,7 +49,7 @@ function init(action) {
throw new Error(); throw new Error();
} }
} }
catch (_b) { catch (_a) {
(0, core_1.info)('Unable to unset previous git config authentication as it may not exist, continuing…'); (0, core_1.info)('Unable to unset previous git config authentication as it may not exist, continuing…');
} }
try { try {
@ -55,7 +58,7 @@ function init(action) {
throw new Error(); throw new Error();
} }
} }
catch (_c) { catch (_b) {
(0, core_1.info)('Attempted to remove origin but failed, continuing…'); (0, core_1.info)('Attempted to remove origin but failed, continuing…');
} }
yield (0, execute_1.execute)(`git remote add origin ${action.repositoryPath}`, action.workspace, action.silent); yield (0, execute_1.execute)(`git remote add origin ${action.repositoryPath}`, action.workspace, action.silent);