@@ -1479,51 +1479,41 @@ __webpack_require__.r(__webpack_exports__);
14791479/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__ . n ( _actions_core__WEBPACK_IMPORTED_MODULE_0__ ) ;
14801480/* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__ ( 469 ) ;
14811481/* 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- } ;
14901482
14911483
14921484process . on ( 'unhandledRejection' , handleError ) ;
14931485main ( ) . 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- } ) ;
1486+ async function main ( ) {
1487+ const AsyncFunction = Object . getPrototypeOf ( async ( ) => { } ) . constructor ;
1488+ const token = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'github-token' , { required : true } ) ;
1489+ const debug = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'debug' ) ;
1490+ const userAgent = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'user-agent' ) ;
1491+ const previews = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'previews' ) ;
1492+ const opts = { } ;
1493+ if ( debug === 'true' )
1494+ opts . log = console ;
1495+ if ( userAgent != null )
1496+ opts . userAgent = userAgent ;
1497+ if ( previews != null )
1498+ opts . previews = previews . split ( ',' ) ;
1499+ const client = new _actions_github__WEBPACK_IMPORTED_MODULE_1__ . GitHub ( token , opts ) ;
1500+ const script = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'script' , { required : true } ) ;
1501+ const fn = new AsyncFunction ( 'require' , 'github' , 'context' , script ) ;
1502+ const result = await fn ( __webpack_require__ ( 875 ) , client , _actions_github__WEBPACK_IMPORTED_MODULE_1__ . context ) ;
1503+ let encoding = _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ( 'result-encoding' ) ;
1504+ encoding = encoding ? encoding : 'json' ;
1505+ let output ;
1506+ switch ( encoding ) {
1507+ case 'json' :
1508+ output = JSON . stringify ( result ) ;
1509+ break ;
1510+ case 'string' :
1511+ output = String ( result ) ;
1512+ break ;
1513+ default :
1514+ throw new Error ( '"result-encoding" must be either "string" or "json"' ) ;
1515+ }
1516+ _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setOutput ( 'result' , output ) ;
15271517}
15281518function handleError ( err ) {
15291519 console . error ( err ) ;
0 commit comments