Skip to content

Commit e383eb8

Browse files
committed
Merge branch 'dev' into releases/v3
2 parents 9cc3675 + 99e98da commit e383eb8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/git.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ export async function init(action: ActionInterface): Promise<void | Error> {
3131

3232
try {
3333
await execute(`git remote rm origin`, action.workspace, action.silent)
34-
} finally {
34+
3535
if (action.isTest) {
36-
info('Attempted to remove origin…')
36+
throw new Error()
3737
}
38+
} catch {
39+
info('Attempted to remove origin but failed, continuing…')
3840
}
3941

4042
await execute(
@@ -183,10 +185,12 @@ export async function deploy(action: ActionInterface): Promise<Status> {
183185

184186
try {
185187
await execute(`git stash apply`, action.workspace, action.silent)
186-
} finally {
188+
187189
if (action.isTest) {
188-
info('Attempted to apply stash…')
190+
throw new Error()
189191
}
192+
} catch {
193+
info('Unable to apply from stash, continuing…')
190194
}
191195
}
192196

0 commit comments

Comments
 (0)