File tree 2 files changed +4
-4
lines changed
Filter options
2 files changed +4
-4
lines changed
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ inputs:
17
17
description : An optional user-agent string
18
18
default : actions/github-script
19
19
previews :
20
- description : A list of API previews to accept
20
+ description : A comma-separated list of API previews to accept
21
21
outputs :
22
22
result :
23
23
description : The return value of the script, stringified with `JSON.stringify`
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ async function main() {
11
11
const userAgent = core . getInput ( 'user-agent' )
12
12
const previews = core . getInput ( 'previews' )
13
13
const opts = { }
14
- if ( debug ) opts . log = console
15
- if ( userAgent ) opts . userAgent = userAgent
16
- if ( previews ) opts . previews = previews
14
+ if ( debug === 'true' ) opts . log = console
15
+ if ( userAgent != null ) opts . userAgent = userAgent
16
+ if ( previews != null ) opts . previews = previews . split ( ',' )
17
17
const client = new GitHub ( token , opts )
18
18
const script = core . getInput ( 'script' , { required : true } )
19
19
const fn = new AsyncFunction ( 'github' , 'context' , script )
You can’t perform that action at this time.
0 commit comments