File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ inputs:
1717 description : An optional user-agent string
1818 default : actions/github-script
1919 previews :
20- description : A list of API previews to accept
20+ description : A comma-separated list of API previews to accept
2121outputs :
2222 result :
2323 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() {
1111 const userAgent = core . getInput ( 'user-agent' )
1212 const previews = core . getInput ( 'previews' )
1313 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 ( ',' )
1717 const client = new GitHub ( token , opts )
1818 const script = core . getInput ( 'script' , { required : true } )
1919 const fn = new AsyncFunction ( 'github' , 'context' , script )
You can’t perform that action at this time.
0 commit comments