Move the complete step into a finally block
This commit is contained in:
parent
6c4294ed2c
commit
8c4a891060
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
|
@ -98330,10 +98330,13 @@ async function main() {
|
|||
}
|
||||
}
|
||||
catch (error) {
|
||||
if (error instanceof Error)
|
||||
if (error instanceof Error) {
|
||||
core.setFailed(error);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
await installer.idslib.complete();
|
||||
}
|
||||
await installer.idslib.complete();
|
||||
}
|
||||
// eslint-disable-next-line github/no-then
|
||||
main().catch((error) => {
|
||||
|
|
7
dist/main.js
generated
vendored
7
dist/main.js
generated
vendored
|
@ -793,10 +793,13 @@ async function main() {
|
|||
}
|
||||
}
|
||||
catch (error) {
|
||||
if (error instanceof Error)
|
||||
if (error instanceof Error) {
|
||||
actions_core.setFailed(error);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
await installer.idslib.complete();
|
||||
}
|
||||
await installer.idslib.complete();
|
||||
}
|
||||
// eslint-disable-next-line github/no-then
|
||||
main().catch((error) => {
|
||||
|
|
|
@ -1035,10 +1035,12 @@ async function main(): Promise<void> {
|
|||
await installer.report_overall();
|
||||
}
|
||||
} catch (error) {
|
||||
if (error instanceof Error) actions_core.setFailed(error);
|
||||
if (error instanceof Error) {
|
||||
actions_core.setFailed(error);
|
||||
}
|
||||
} finally {
|
||||
await installer.idslib.complete();
|
||||
}
|
||||
|
||||
await installer.idslib.complete();
|
||||
}
|
||||
|
||||
// eslint-disable-next-line github/no-then
|
||||
|
|
Loading…
Reference in a new issue