feat(core): add typed error handling to main run function

This commit is contained in:
peaklabs-dev committed 2026-02-09 15:19:49 +01:00
1 parent db5a53f500
commit 4a83aab034
1 file changed
+12 -1
+12 -1
View File
@@ -1 +1,12 @@
export async function run(): Promise<void> {} import * as core from "@actions/core";
export async function run(): Promise<void> {
try {
} catch (error: unknown) {
if (error instanceof Error) {
core.setFailed(error.message);
} else {
core.setFailed("An unexpected error occurred");
}
}
}