Skip to content

Commit cba24f4

Browse files
author
Enda Phelan
committed
chore: rename action
1 parent 7053540 commit cba24f4

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

.chglog/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ style: github
22
template: CHANGELOG.tpl.md
33
info:
44
title: CHANGELOG
5-
repository_url: https://github.com/craicoverflow/git-chglog-action
5+
repository_url: https://github.com/craicoverflow/install-git-chglog
66
options:
77
commits:
88
# filters:

dist/index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports.baseUrl = 'https://github.com/git-chglog/git-chglog';
4444
const 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
});
5050
exports.getRelease = getRelease;
@@ -57,7 +57,7 @@ const resolveVersion = (version) => __awaiter(void 0, void 0, void 0, function*
5757
return semver.maxSatisfying(allTags, version);
5858
});
5959
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');
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
};
182182
Object.defineProperty(exports, "__esModule", ({ value: true }));
183183
const core = __importStar(__webpack_require__(186));
184-
const exec = __importStar(__webpack_require__(514));
185184
const path_1 = __webpack_require__(622);
186185
const installer_1 = __webpack_require__(480);
187186
function 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);

src/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const baseUrl = 'https://github.com/git-chglog/git-chglog';
1212
export const getRelease = async (version: string): Promise<GitHubRelease | null> => {
1313
const resolvedVersion: string = version;
1414
const url: string = `${baseUrl}/releases/${resolvedVersion}`;
15-
const http: httpm.HttpClient = new httpm.HttpClient('git-chglog-action');
15+
const http: httpm.HttpClient = new httpm.HttpClient('install-git-chglog');
1616
return (await http.getJson<GitHubRelease>(url)).result;
1717
};
1818

@@ -31,7 +31,7 @@ interface GitHubTag {
3131
}
3232

3333
const getAllTags = async (): Promise<Array<string>> => {
34-
const http: httpm.HttpClient = new httpm.HttpClient('git-chglog-action');
34+
const http: httpm.HttpClient = new httpm.HttpClient('install-git-chglog');
3535
const url: string = `https://goreleaser.com/static/releases.json`;
3636
const getTags = http.getJson<Array<GitHubTag>>(url);
3737

src/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function getGitChglog(version: string): Promise<string> {
2121
let extPath: string;
2222
extPath = await tc.extractTar(downloadPath);
2323

24-
const cachePath: string = await tc.cacheDir(extPath, 'git-chglog-action', release.tag_name.replace(/^v/, ''));
24+
const cachePath: string = await tc.cacheDir(extPath, 'install-git-chglog', release.tag_name.replace(/^v/, ''));
2525
core.debug(`Cached to ${cachePath}`);
2626

2727
const exePath: string = 'git-chglog';

src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ async function run(): Promise<void> {
1818
core.info(`📂 Using ${workdir} as working directory...`);
1919
process.chdir(workdir);
2020
}
21-
2221
} catch (error) {
2322
core.setFailed(error.message);
2423
}

0 commit comments

Comments
 (0)