@@ -110,6 +110,7 @@ const util = __importStar(__webpack_require__(669));
110
110
const github = __importStar ( __webpack_require__ ( 928 ) ) ;
111
111
const core = __importStar ( __webpack_require__ ( 186 ) ) ;
112
112
const tc = __importStar ( __webpack_require__ ( 784 ) ) ;
113
+ const path = __importStar ( __webpack_require__ ( 622 ) ) ;
113
114
function getGitChglog ( version ) {
114
115
return __awaiter ( this , void 0 , void 0 , function * ( ) {
115
116
const release = yield github . getRelease ( version ) ;
@@ -127,7 +128,7 @@ function getGitChglog(version) {
127
128
extPath = yield tc . extractTar ( downloadPath ) ;
128
129
const cachePath = yield tc . cacheDir ( extPath , 'install-git-chglog' , release . tag_name . replace ( / ^ v / , '' ) ) ;
129
130
core . debug ( `Cached to ${ cachePath } ` ) ;
130
- const exePath = 'git-chglog' ;
131
+ const exePath = path . join ( cachePath , 'git-chglog' ) ;
131
132
core . debug ( `Exe path is ${ exePath } ` ) ;
132
133
return exePath ;
133
134
} ) ;
@@ -187,8 +188,9 @@ function run() {
187
188
return __awaiter ( this , void 0 , void 0 , function * ( ) {
188
189
try {
189
190
const version = core . getInput ( 'version' ) || 'latest' ;
190
- const workdir = core . getInput ( 'workdir' ) || '.' ;
191
+ const workdir = '.' ;
191
192
const gitChglog = yield installer_1 . getGitChglog ( version ) ;
193
+ core . debug ( gitChglog ) ;
192
194
core . info ( `✅ git-chglog installed successfully` ) ;
193
195
const gitChglogDir = path_1 . dirname ( gitChglog ) ;
194
196
core . addPath ( gitChglogDir ) ;
0 commit comments