Skip to content

Commit a620b9f

Browse files
committed
Force exit on error
1 parent a6d2a86 commit a620b9f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

dist/index.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ export async function run(): Promise<void> {
9696
} else {
9797
core.setFailed(`An unexpected error occurred: ${JSON.stringify(error)}`)
9898
}
99+
100+
// Force exit to prevent hanging on open connections
101+
process.exit(1)
99102
}
100103
}
101104

0 commit comments

Comments
 (0)