Skip to content

Commit 6006a88

Browse files
committed
Update wrapper
1 parent 65415b1 commit 6006a88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nodejs-wrapper-src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function exchangeFileWrite(data: Record<string, unknown>): Promise<void> {
1010
await exchangeFileHandle.truncate(0);
1111
return exchangeFileHandle.writeFile(JSON.stringify(data), { encoding: "utf8" });
1212
}
13-
function resolveFail(reason: string | Error | RangeError | ReferenceError | SyntaxError | TypeError): Promise<void> {
13+
function resolveFail(reason: string | Error): Promise<void> {
1414
const output: Record<string, unknown> = {
1515
isSuccess: false
1616
};
@@ -33,12 +33,12 @@ function resolveSuccess(result: unknown): Promise<void> {
3333
}
3434
switch (input.$name) {
3535
case "debug/fail":
36-
ghactionsDebug(input?.message ?? "");
36+
ghactionsDebug(input?.message ?? "Hello, world!");
3737
await resolveFail("This is a fail.");
3838
break;
3939
case "debug/success":
40-
ghactionsDebug(input?.message ?? "");
41-
await resolveSuccess("This is a success");
40+
ghactionsDebug(input?.message ?? "Hello, world!");
41+
await resolveSuccess("This is a success.");
4242
break;
4343
case "artifact/download":
4444
try {

0 commit comments

Comments
 (0)