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