@@ -34,8 +34,10 @@ module.exports =
34
34
/******/ // the startup function
35
35
/******/ function startup ( ) {
36
36
/******/ // Load entry module and return exports
37
- /******/ return __webpack_require__ ( 31 ) ;
37
+ /******/ return __webpack_require__ ( 131 ) ;
38
38
/******/ } ;
39
+ /******/ // initialize runtime
40
+ /******/ runtime ( __webpack_require__ ) ;
39
41
/******/
40
42
/******/ // run startup
41
43
/******/ return startup ( ) ;
@@ -390,57 +392,6 @@ module.exports._parse = parse;
390
392
module . exports . _enoent = enoent ;
391
393
392
394
393
- /***/ } ) ,
394
-
395
- /***/ 31 :
396
- /***/ ( function ( __unusedmodule , __unusedexports , __webpack_require__ ) {
397
-
398
- const core = __webpack_require__ ( 470 )
399
- const { GitHub, context} = __webpack_require__ ( 469 )
400
-
401
- process . on ( 'unhandledRejection' , handleError )
402
- main ( ) . catch ( handleError )
403
-
404
- async function main ( ) {
405
- const AsyncFunction = Object . getPrototypeOf ( async ( ) => { } ) . constructor
406
- const token = core . getInput ( 'github-token' , { required : true } )
407
- const debug = core . getInput ( 'debug' )
408
- const userAgent = core . getInput ( 'user-agent' )
409
- const previews = core . getInput ( 'previews' )
410
- const opts = { }
411
- if ( debug === 'true' ) opts . log = console
412
- if ( userAgent != null ) opts . userAgent = userAgent
413
- if ( previews != null ) opts . previews = previews . split ( ',' )
414
- const client = new GitHub ( token , opts )
415
- const script = core . getInput ( 'script' , { required : true } )
416
- const fn = new AsyncFunction ( 'require' , 'github' , 'context' , script )
417
- const result = await fn ( require , client , context )
418
-
419
- let encoding = core . getInput ( 'result-encoding' )
420
- encoding = encoding ? encoding : 'json'
421
-
422
- let output
423
-
424
- switch ( encoding ) {
425
- case 'json' :
426
- output = JSON . stringify ( result )
427
- break
428
- case 'string' :
429
- output = String ( result )
430
- break
431
- default :
432
- throw new Error ( '"result-encoding" must be either "string" or "json"' )
433
- }
434
-
435
- core . setOutput ( 'result' , output )
436
- }
437
-
438
- function handleError ( err ) {
439
- console . error ( err )
440
- core . setFailed ( err . message )
441
- }
442
-
443
-
444
395
/***/ } ) ,
445
396
446
397
/***/ 34 :
@@ -1517,6 +1468,74 @@ module.exports = uniq;
1517
1468
1518
1469
module . exports = require ( "child_process" ) ;
1519
1470
1471
+ /***/ } ) ,
1472
+
1473
+ /***/ 131 :
1474
+ /***/ ( function ( __unusedmodule , __webpack_exports__ , __webpack_require__ ) {
1475
+
1476
+ "use strict" ;
1477
+ __webpack_require__ . r ( __webpack_exports__ ) ;
1478
+ /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__ ( 470 ) ;
1479
+ /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__ . n ( _actions_core__WEBPACK_IMPORTED_MODULE_0__ ) ;
1480
+ /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__ ( 469 ) ;
1481
+ /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__ . n ( _actions_github__WEBPACK_IMPORTED_MODULE_1__ ) ;
1482
+ var __awaiter = ( undefined && undefined . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
1483
+ return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
1484
+ function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
1485
+ function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
1486
+ function step ( result ) { result . done ? resolve ( result . value ) : new P ( function ( resolve ) { resolve ( result . value ) ; } ) . then ( fulfilled , rejected ) ; }
1487
+ step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
1488
+ } ) ;
1489
+ } ;
1490
+
1491
+
1492
+ process . on ( 'unhandledRejection' , handleError ) ;
1493
+ main ( ) . catch ( handleError ) ;
1494
+ function main ( ) {
1495
+ return __awaiter ( this , void 0 , void 0 , function * ( ) {
1496
+ const AsyncFunction = Object . getPrototypeOf ( ( ) => __awaiter ( this , void 0 , void 0 , function * ( ) { } ) ) . constructor ;
1497
+ const token = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'github-token' , { required : true } ) ;
1498
+ const debug = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'debug' ) ;
1499
+ const userAgent = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'user-agent' ) ;
1500
+ const previews = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'previews' ) ;
1501
+ const opts = { } ;
1502
+ if ( debug === 'true' )
1503
+ opts . log = console ;
1504
+ if ( userAgent != null )
1505
+ opts . userAgent = userAgent ;
1506
+ if ( previews != null )
1507
+ opts . previews = previews . split ( ',' ) ;
1508
+ const client = new _actions_github__WEBPACK_IMPORTED_MODULE_1__ . GitHub ( token , opts ) ;
1509
+ const script = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'script' , { required : true } ) ;
1510
+ const fn = new AsyncFunction ( 'require' , 'github' , 'context' , script ) ;
1511
+ const result = yield fn ( __webpack_require__ ( 875 ) , client , _actions_github__WEBPACK_IMPORTED_MODULE_1__ . context ) ;
1512
+ let encoding = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'result-encoding' ) ;
1513
+ encoding = encoding ? encoding : 'json' ;
1514
+ let output ;
1515
+ switch ( encoding ) {
1516
+ case 'json' :
1517
+ output = JSON . stringify ( result ) ;
1518
+ break ;
1519
+ case 'string' :
1520
+ output = String ( result ) ;
1521
+ break ;
1522
+ default :
1523
+ throw new Error ( '"result-encoding" must be either "string" or "json"' ) ;
1524
+ }
1525
+ _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setOutput ( 'result' , output ) ;
1526
+ } ) ;
1527
+ }
1528
+ function handleError ( err ) {
1529
+ console . error ( err ) ;
1530
+ if ( err && err . message ) {
1531
+ _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setFailed ( err . message ) ;
1532
+ }
1533
+ else {
1534
+ _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setFailed ( `Unhandled error: ${ err } ` ) ;
1535
+ }
1536
+ }
1537
+
1538
+
1520
1539
/***/ } ) ,
1521
1540
1522
1541
/***/ 143 :
@@ -9524,6 +9543,25 @@ module.exports = function (str) {
9524
9543
} ;
9525
9544
9526
9545
9546
+ /***/ } ) ,
9547
+
9548
+ /***/ 875 :
9549
+ /***/ ( function ( module ) {
9550
+
9551
+ function webpackEmptyContext ( req ) {
9552
+ if ( typeof req === 'number' && __webpack_require__ . m [ req ] )
9553
+ return __webpack_require__ ( req ) ;
9554
+ try { return require ( req ) }
9555
+ catch ( e ) { if ( e . code !== 'MODULE_NOT_FOUND' ) throw e }
9556
+ var e = new Error ( "Cannot find module '" + req + "'" ) ;
9557
+ e . code = 'MODULE_NOT_FOUND' ;
9558
+ throw e ;
9559
+ }
9560
+ webpackEmptyContext . keys = function ( ) { return [ ] ; } ;
9561
+ webpackEmptyContext . resolve = webpackEmptyContext ;
9562
+ module . exports = webpackEmptyContext ;
9563
+ webpackEmptyContext . id = 875 ;
9564
+
9527
9565
/***/ } ) ,
9528
9566
9529
9567
/***/ 881 :
@@ -11235,4 +11273,43 @@ function onceStrict (fn) {
11235
11273
11236
11274
/***/ } )
11237
11275
11238
- /******/ } ) ;
11276
+ /******/ } ,
11277
+ /******/ function ( __webpack_require__ ) { // webpackRuntimeModules
11278
+ /******/ "use strict" ;
11279
+ /******/
11280
+ /******/ /* webpack/runtime/make namespace object */
11281
+ /******/ ! function ( ) {
11282
+ /******/ // define __esModule on exports
11283
+ /******/ __webpack_require__ . r = function ( exports ) {
11284
+ /******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
11285
+ /******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
11286
+ /******/ }
11287
+ /******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
11288
+ /******/ } ;
11289
+ /******/ } ( ) ;
11290
+ /******/
11291
+ /******/ /* webpack/runtime/compat get default export */
11292
+ /******/ ! function ( ) {
11293
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
11294
+ /******/ __webpack_require__ . n = function ( module ) {
11295
+ /******/ var getter = module && module . __esModule ?
11296
+ /******/ function getDefault ( ) { return module [ 'default' ] ; } :
11297
+ /******/ function getModuleExports ( ) { return module ; } ;
11298
+ /******/ __webpack_require__ . d ( getter , 'a' , getter ) ;
11299
+ /******/ return getter ;
11300
+ /******/ } ;
11301
+ /******/ } ( ) ;
11302
+ /******/
11303
+ /******/ /* webpack/runtime/define property getter */
11304
+ /******/ ! function ( ) {
11305
+ /******/ // define getter function for harmony exports
11306
+ /******/ var hasOwnProperty = Object . prototype . hasOwnProperty ;
11307
+ /******/ __webpack_require__ . d = function ( exports , name , getter ) {
11308
+ /******/ if ( ! hasOwnProperty . call ( exports , name ) ) {
11309
+ /******/ Object . defineProperty ( exports , name , { enumerable : true , get : getter } ) ;
11310
+ /******/ }
11311
+ /******/ } ;
11312
+ /******/ } ( ) ;
11313
+ /******/
11314
+ /******/ }
11315
+ ) ;
0 commit comments