@@ -44,7 +44,7 @@ exports.baseUrl = 'https://github.com/git-chglog/git-chglog';
44
44
const getRelease = ( version ) => __awaiter ( void 0 , void 0 , void 0 , function * ( ) {
45
45
const resolvedVersion = version ;
46
46
const url = `${ exports . baseUrl } /releases/${ resolvedVersion } ` ;
47
- const http = new httpm . HttpClient ( 'git-chglog-action ' ) ;
47
+ const http = new httpm . HttpClient ( 'install- git-chglog' ) ;
48
48
return ( yield http . getJson ( url ) ) . result ;
49
49
} ) ;
50
50
exports . getRelease = getRelease ;
@@ -57,7 +57,7 @@ const resolveVersion = (version) => __awaiter(void 0, void 0, void 0, function*
57
57
return semver . maxSatisfying ( allTags , version ) ;
58
58
} ) ;
59
59
const 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' ) ;
61
61
const url = `https://goreleaser.com/static/releases.json` ;
62
62
const getTags = http . getJson ( url ) ;
63
63
return getTags . then ( response => {
@@ -125,7 +125,7 @@ function getGitChglog(version) {
125
125
core . info ( '📦 Extracting git-chglog...' ) ;
126
126
let extPath ;
127
127
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 / , '' ) ) ;
129
129
core . debug ( `Cached to ${ cachePath } ` ) ;
130
130
const exePath = 'git-chglog' ;
131
131
core . debug ( `Exe path is ${ exePath } ` ) ;
@@ -181,14 +181,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
181
181
} ;
182
182
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
183
183
const core = __importStar ( __webpack_require__ ( 186 ) ) ;
184
- const exec = __importStar ( __webpack_require__ ( 514 ) ) ;
185
184
const path_1 = __webpack_require__ ( 622 ) ;
186
185
const installer_1 = __webpack_require__ ( 480 ) ;
187
186
function run ( ) {
188
187
return __awaiter ( this , void 0 , void 0 , function * ( ) {
189
188
try {
190
189
const version = core . getInput ( 'version' ) || 'latest' ;
191
- const args = core . getInput ( 'args' ) ;
192
190
const workdir = core . getInput ( 'workdir' ) || '.' ;
193
191
const gitChglog = yield installer_1 . getGitChglog ( version ) ;
194
192
core . info ( `✅ git-chglog installed successfully` ) ;
@@ -199,8 +197,6 @@ function run() {
199
197
core . info ( `📂 Using ${ workdir } as working directory...` ) ;
200
198
process . chdir ( workdir ) ;
201
199
}
202
- core . info ( '🏃 Running git-chglog...' ) ;
203
- yield exec . exec ( `${ gitChglog } ${ args } ` ) ;
204
200
}
205
201
catch ( error ) {
206
202
core . setFailed ( error . message ) ;
0 commit comments