File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ async function exchangeFileWrite(data: Record<string, unknown>): Promise<void> {
10
10
await exchangeFileHandle . truncate ( 0 ) ;
11
11
return exchangeFileHandle . writeFile ( JSON . stringify ( data ) , { encoding : "utf8" } ) ;
12
12
}
13
- function resolveFail ( reason : string | Error | RangeError | ReferenceError | SyntaxError | TypeError ) : Promise < void > {
13
+ function resolveFail ( reason : string | Error ) : Promise < void > {
14
14
const output : Record < string , unknown > = {
15
15
isSuccess : false
16
16
} ;
@@ -33,12 +33,12 @@ function resolveSuccess(result: unknown): Promise<void> {
33
33
}
34
34
switch ( input . $name ) {
35
35
case "debug/fail" :
36
- ghactionsDebug ( input ?. message ?? "" ) ;
36
+ ghactionsDebug ( input ?. message ?? "Hello, world! " ) ;
37
37
await resolveFail ( "This is a fail." ) ;
38
38
break ;
39
39
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. " ) ;
42
42
break ;
43
43
case "artifact/download" :
44
44
try {
You can’t perform that action at this time.
0 commit comments