Skip to content

Commit 788c77f

Browse files
committed
Deploy Production Code for Commit 131fed3 🚀
1 parent 131fed3 commit 788c77f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

lib/git.js

+8-11
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@ function init(action) {
2626
try {
2727
(0, core_1.info)(`Deploying using ${action.tokenType}… 🔑`);
2828
(0, core_1.info)('Configuring git…');
29-
// try {
30-
// await execute(
31-
// `git config --global --add safe.directory "${action.workspace}"`,
32-
// action.workspace,
33-
// action.silent
34-
// )
35-
// } catch {
36-
// info('Unable to set workspace as a safe directory…')
37-
// }
29+
try {
30+
yield (0, execute_1.execute)(`git config --global --add safe.directory "${action.workspace}"`, action.workspace, action.silent);
31+
}
32+
catch (_a) {
33+
(0, core_1.info)('Unable to set workspace as a safe directory…');
34+
}
3835
yield (0, execute_1.execute)(`git config user.name "${action.name}"`, action.workspace, action.silent);
3936
yield (0, execute_1.execute)(`git config user.email "${action.email}"`, action.workspace, action.silent);
4037
yield (0, execute_1.execute)(`git config core.ignorecase false`, action.workspace, action.silent);
@@ -49,7 +46,7 @@ function init(action) {
4946
throw new Error();
5047
}
5148
}
52-
catch (_a) {
49+
catch (_b) {
5350
(0, core_1.info)('Unable to unset previous git config authentication as it may not exist, continuing…');
5451
}
5552
try {
@@ -58,7 +55,7 @@ function init(action) {
5855
throw new Error();
5956
}
6057
}
61-
catch (_b) {
58+
catch (_c) {
6259
(0, core_1.info)('Attempted to remove origin but failed, continuing…');
6360
}
6461
yield (0, execute_1.execute)(`git remote add origin ${action.repositoryPath}`, action.workspace, action.silent);

0 commit comments

Comments
 (0)