@@ -44,7 +44,7 @@ exports.baseUrl = 'https://github.com/git-chglog/git-chglog';
4444const getRelease = ( version ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
4545 const resolvedVersion = version ;
4646 const url = `${ exports . baseUrl } /releases/${ resolvedVersion } ` ;
47- const http = new httpm . HttpClient ( 'git-chglog-action ' ) ;
47+ const http = new httpm . HttpClient ( 'install- git-chglog' ) ;
4848 return ( yield http . getJson ( url ) ) . result ;
4949} ) ;
5050exports . getRelease = getRelease ;
@@ -57,7 +57,7 @@ const resolveVersion = (version) => __awaiter(void 0, void 0, void 0, function*
5757 return semver . maxSatisfying ( allTags , version ) ;
5858} ) ;
5959const getAllTags = ( ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
60- const http = new httpm . HttpClient ( 'git-chglog-action ' ) ;
60+ const http = new httpm . HttpClient ( 'install- git-chglog' ) ;
6161 const url = `https://goreleaser.com/static/releases.json` ;
6262 const getTags = http . getJson ( url ) ;
6363 return getTags . then ( response => {
@@ -125,7 +125,7 @@ function getGitChglog(version) {
125125 core . info ( '📦 Extracting git-chglog...' ) ;
126126 let extPath ;
127127 extPath = yield tc . extractTar ( downloadPath ) ;
128- const cachePath = yield tc . cacheDir ( extPath , 'git-chglog-action ' , release . tag_name . replace ( / ^ v / , '' ) ) ;
128+ const cachePath = yield tc . cacheDir ( extPath , 'install- git-chglog' , release . tag_name . replace ( / ^ v / , '' ) ) ;
129129 core . debug ( `Cached to ${ cachePath } ` ) ;
130130 const exePath = 'git-chglog' ;
131131 core . debug ( `Exe path is ${ exePath } ` ) ;
@@ -181,14 +181,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
181181} ;
182182Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
183183const core = __importStar ( __webpack_require__ ( 186 ) ) ;
184- const exec = __importStar ( __webpack_require__ ( 514 ) ) ;
185184const path_1 = __webpack_require__ ( 622 ) ;
186185const installer_1 = __webpack_require__ ( 480 ) ;
187186function run ( ) {
188187 return __awaiter ( this , void 0 , void 0 , function * ( ) {
189188 try {
190189 const version = core . getInput ( 'version' ) || 'latest' ;
191- const args = core . getInput ( 'args' ) ;
192190 const workdir = core . getInput ( 'workdir' ) || '.' ;
193191 const gitChglog = yield installer_1 . getGitChglog ( version ) ;
194192 core . info ( `✅ git-chglog installed successfully` ) ;
@@ -199,8 +197,6 @@ function run() {
199197 core . info ( `📂 Using ${ workdir } as working directory...` ) ;
200198 process . chdir ( workdir ) ;
201199 }
202- core . info ( '🏃 Running git-chglog...' ) ;
203- yield exec . exec ( `${ gitChglog } ${ args } ` ) ;
204200 }
205201 catch ( error ) {
206202 core . setFailed ( error . message ) ;
0 commit comments