@@ -30,23 +30,12 @@ function init(action) {
30
30
( 0 , core_1 . info ) ( `Deploying using ${ action . tokenType } … 🔑` ) ;
31
31
( 0 , core_1 . info ) ( 'Configuring git…' ) ;
32
32
/**
33
- * Add safe directory to the global git config.
34
- */
35
- try {
36
- yield ( 0 , execute_1 . execute ) ( `git config --global safe.directory '*'` , action . workspace , action . silent ) ;
37
- }
38
- catch ( _a ) {
39
- ( 0 , core_1 . info ) ( 'Unable to set workflow file tree as a safe directory…' ) ;
40
- }
41
- /**
42
- * Ensure that the workspace is a safe directory, this is somewhat redundant as the action
43
- * will always set the workspace as a safe directory, but this is a fallback in case the action
44
- * fails to do so.
33
+ * Ensure that the workspace is a safe directory.
45
34
*/
46
35
try {
47
36
yield ( 0 , execute_1 . execute ) ( `git config --global --add safe.directory "${ action . workspace } "` , action . workspace , action . silent ) ;
48
37
}
49
- catch ( _b ) {
38
+ catch ( _a ) {
50
39
( 0 , core_1 . info ) ( 'Unable to set workspace as a safe directory…' ) ;
51
40
}
52
41
yield ( 0 , execute_1 . execute ) ( `git config user.name "${ action . name } "` , action . workspace , action . silent ) ;
@@ -63,7 +52,7 @@ function init(action) {
63
52
throw new Error ( ) ;
64
53
}
65
54
}
66
- catch ( _c ) {
55
+ catch ( _b ) {
67
56
( 0 , core_1 . info ) ( 'Unable to unset previous git config authentication as it may not exist, continuing…' ) ;
68
57
}
69
58
try {
@@ -72,7 +61,7 @@ function init(action) {
72
61
throw new Error ( ) ;
73
62
}
74
63
}
75
- catch ( _d ) {
64
+ catch ( _c ) {
76
65
( 0 , core_1 . info ) ( 'Attempted to remove origin but failed, continuing…' ) ;
77
66
}
78
67
yield ( 0 , execute_1 . execute ) ( `git remote add origin ${ action . repositoryPath } ` , action . workspace , action . silent ) ;
0 commit comments