File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,12 @@ export async function init(action: ActionInterface): Promise<void | Error> {
31
31
32
32
try {
33
33
await execute ( `git remote rm origin` , action . workspace , action . silent )
34
- } finally {
34
+
35
35
if ( action . isTest ) {
36
- info ( 'Attempted to remove origin…' )
36
+ throw new Error ( )
37
37
}
38
+ } catch {
39
+ info ( 'Attempted to remove origin but failed, continuing…' )
38
40
}
39
41
40
42
await execute (
@@ -183,10 +185,12 @@ export async function deploy(action: ActionInterface): Promise<Status> {
183
185
184
186
try {
185
187
await execute ( `git stash apply` , action . workspace , action . silent )
186
- } finally {
188
+
187
189
if ( action . isTest ) {
188
- info ( 'Attempted to apply stash…' )
190
+ throw new Error ( )
189
191
}
192
+ } catch {
193
+ info ( 'Unable to apply from stash, continuing…' )
190
194
}
191
195
}
192
196
You can’t perform that action at this time.
0 commit comments