@@ -26,12 +26,15 @@ function init(action) {
26
26
try {
27
27
( 0 , core_1 . info ) ( `Deploying using ${ action . tokenType } … 🔑` ) ;
28
28
( 0 , core_1 . info ) ( 'Configuring git…' ) ;
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
- }
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
+ // }
35
38
yield ( 0 , execute_1 . execute ) ( `git config user.name "${ action . name } "` , action . workspace , action . silent ) ;
36
39
yield ( 0 , execute_1 . execute ) ( `git config user.email "${ action . email } "` , action . workspace , action . silent ) ;
37
40
yield ( 0 , execute_1 . execute ) ( `git config core.ignorecase false` , action . workspace , action . silent ) ;
@@ -46,7 +49,7 @@ function init(action) {
46
49
throw new Error ( ) ;
47
50
}
48
51
}
49
- catch ( _b ) {
52
+ catch ( _a ) {
50
53
( 0 , core_1 . info ) ( 'Unable to unset previous git config authentication as it may not exist, continuing…' ) ;
51
54
}
52
55
try {
@@ -55,7 +58,7 @@ function init(action) {
55
58
throw new Error ( ) ;
56
59
}
57
60
}
58
- catch ( _c ) {
61
+ catch ( _b ) {
59
62
( 0 , core_1 . info ) ( 'Attempted to remove origin but failed, continuing…' ) ;
60
63
}
61
64
yield ( 0 , execute_1 . execute ) ( `git remote add origin ${ action . repositoryPath } ` , action . workspace , action . silent ) ;
0 commit comments