@@ -7610,31 +7610,79 @@ module.exports = require("zlib");
7610
7610
/******/ }
7611
7611
/******/
7612
7612
/************************************************************************/
7613
+ /******/ /* webpack/runtime/compat get default export */
7614
+ /******/ ( ( ) => {
7615
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
7616
+ /******/ __nccwpck_require__ . n = ( module ) => {
7617
+ /******/ var getter = module && module . __esModule ?
7618
+ /******/ ( ) => ( module [ 'default' ] ) :
7619
+ /******/ ( ) => ( module ) ;
7620
+ /******/ __nccwpck_require__ . d ( getter , { a : getter } ) ;
7621
+ /******/ return getter ;
7622
+ /******/ } ;
7623
+ /******/ } ) ( ) ;
7624
+ /******/
7625
+ /******/ /* webpack/runtime/define property getters */
7626
+ /******/ ( ( ) => {
7627
+ /******/ // define getter functions for harmony exports
7628
+ /******/ __nccwpck_require__ . d = ( exports , definition ) => {
7629
+ /******/ for ( var key in definition ) {
7630
+ /******/ if ( __nccwpck_require__ . o ( definition , key ) && ! __nccwpck_require__ . o ( exports , key ) ) {
7631
+ /******/ Object . defineProperty ( exports , key , { enumerable : true , get : definition [ key ] } ) ;
7632
+ /******/ }
7633
+ /******/ }
7634
+ /******/ } ;
7635
+ /******/ } ) ( ) ;
7636
+ /******/
7637
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
7638
+ /******/ ( ( ) => {
7639
+ /******/ __nccwpck_require__ . o = ( obj , prop ) => ( Object . prototype . hasOwnProperty . call ( obj , prop ) )
7640
+ /******/ } ) ( ) ;
7641
+ /******/
7642
+ /******/ /* webpack/runtime/make namespace object */
7643
+ /******/ ( ( ) => {
7644
+ /******/ // define __esModule on exports
7645
+ /******/ __nccwpck_require__ . r = ( exports ) => {
7646
+ /******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
7647
+ /******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
7648
+ /******/ }
7649
+ /******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
7650
+ /******/ } ;
7651
+ /******/ } ) ( ) ;
7652
+ /******/
7613
7653
/******/ /* webpack/runtime/compat */
7614
7654
/******/
7615
7655
/******/ if ( typeof __nccwpck_require__ !== 'undefined' ) __nccwpck_require__ . ab = __dirname + "/" ;
7616
7656
/******/
7617
7657
/************************************************************************/
7618
7658
var __webpack_exports__ = { } ;
7619
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk .
7659
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode .
7620
7660
( ( ) => {
7621
- const core = __nccwpck_require__ ( 2186 )
7622
- const exec = __nccwpck_require__ ( 1514 )
7623
- const github = __nccwpck_require__ ( 5438 )
7661
+ "use strict" ;
7662
+ __nccwpck_require__ . r ( __webpack_exports__ ) ;
7663
+ /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__ ( 2186 ) ;
7664
+ /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __nccwpck_require__ . n ( _actions_core__WEBPACK_IMPORTED_MODULE_0__ ) ;
7665
+ /* harmony import */ var _actions_exec__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__ ( 1514 ) ;
7666
+ /* harmony import */ var _actions_exec__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __nccwpck_require__ . n ( _actions_exec__WEBPACK_IMPORTED_MODULE_1__ ) ;
7667
+ /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__ ( 5438 ) ;
7668
+ /* harmony import */ var _actions_github__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/ __nccwpck_require__ . n ( _actions_github__WEBPACK_IMPORTED_MODULE_2__ ) ;
7669
+
7670
+
7671
+
7624
7672
7625
7673
const src = __dirname
7626
7674
7627
7675
async function run ( ) {
7628
7676
try {
7629
- var headRef = core . getInput ( 'head-ref' )
7630
- var baseRef = core . getInput ( 'base-ref' )
7631
- const myToken = core . getInput ( 'myToken' )
7632
- const octokit = new github . getOctokit ( myToken )
7633
- const { owner, repo } = github . context . repo
7677
+ var headRef = ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ) ( 'head-ref' )
7678
+ var baseRef = ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ) ( 'base-ref' )
7679
+ const myToken = ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . getInput ) ( 'myToken' )
7680
+ const octokit = new _actions_github__WEBPACK_IMPORTED_MODULE_2__ . getOctokit ( myToken )
7681
+ const { owner, repo } = _actions_github__WEBPACK_IMPORTED_MODULE_2__ . context . repo
7634
7682
const regexp = / ^ [ . A - Z a - z 0 - 9 _ - ] * $ /
7635
7683
7636
7684
if ( ! headRef ) {
7637
- headRef = github . context . sha
7685
+ headRef = _actions_github__WEBPACK_IMPORTED_MODULE_2__ . context . sha
7638
7686
}
7639
7687
7640
7688
if ( ! baseRef ) {
@@ -7645,7 +7693,7 @@ async function run() {
7645
7693
if ( latestRelease ) {
7646
7694
baseRef = latestRelease . data . tag_name
7647
7695
} else {
7648
- core . setFailed (
7696
+ ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setFailed ) (
7649
7697
`There are no releases on ${ owner } /${ repo } . Tags are not releases.`
7650
7698
)
7651
7699
}
@@ -7662,12 +7710,12 @@ async function run() {
7662
7710
) {
7663
7711
getChangelog ( headRef , baseRef , owner + '/' + repo )
7664
7712
} else {
7665
- core . setFailed (
7713
+ ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setFailed ) (
7666
7714
'Branch names must contain only numbers, strings, underscores, periods, and dashes.'
7667
7715
)
7668
7716
}
7669
7717
} catch ( error ) {
7670
- core . setFailed ( error . message )
7718
+ ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setFailed ) ( error . message )
7671
7719
}
7672
7720
}
7673
7721
@@ -7688,24 +7736,20 @@ async function getChangelog(headRef, baseRef, repoName) {
7688
7736
}
7689
7737
options . cwd = './'
7690
7738
7691
- await exec . exec (
7692
- __nccwpck_require__ . ab + "changelog.sh" ,
7693
- [ headRef , baseRef , repoName ] ,
7694
- options
7695
- )
7739
+ await ( 0 , _actions_exec__WEBPACK_IMPORTED_MODULE_1__ . exec ) ( __nccwpck_require__ . ab + "changelog.sh" , [ headRef , baseRef , repoName ] , options )
7696
7740
7697
7741
if ( output ) {
7698
7742
console . log (
7699
7743
'\x1b[32m%s\x1b[0m' ,
7700
7744
`Changelog between ${ baseRef } and ${ headRef } :\n${ output } `
7701
7745
)
7702
- core . setOutput ( 'changelog' , output )
7746
+ ; ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setOutput ) ( 'changelog' , output )
7703
7747
} else {
7704
- core . setFailed ( err )
7748
+ ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setFailed ) ( err )
7705
7749
process . exit ( 1 )
7706
7750
}
7707
7751
} catch ( err ) {
7708
- core . setFailed (
7752
+ ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setFailed ) (
7709
7753
`Could not generate changelog between references because: ${ err . message } `
7710
7754
)
7711
7755
process . exit ( 0 )
@@ -7715,7 +7759,7 @@ async function getChangelog(headRef, baseRef, repoName) {
7715
7759
try {
7716
7760
run ( )
7717
7761
} catch ( error ) {
7718
- core . setFailed ( error . message )
7762
+ ( 0 , _actions_core__WEBPACK_IMPORTED_MODULE_0__ . setFailed ) ( error . message )
7719
7763
}
7720
7764
7721
7765
} ) ( ) ;
0 commit comments