Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 89ea90e

Browse files
author
github-actions
committed
update dist
1 parent 40f03fc commit 89ea90e

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

dist/index.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6683,12 +6683,28 @@ const core = __nccwpck_require__(2186);
66836683
const tc = __nccwpck_require__(7784);
66846684

66856685
(async () => {
6686-
const url =
6687-
"https://github.com/koki-develop/qiita-cli/releases/download/v0.1.0/qiita_Linux_x86_64.tar.gz";
6686+
const version = (() => {
6687+
const version = "0.1.0"; // TODO: get from input
6688+
if (!version.startsWith("v")) {
6689+
return `v${version}`;
6690+
}
6691+
})();
6692+
core.info(`version: ${version}`);
6693+
6694+
const platform = process.platform;
6695+
const arch = process.arch;
6696+
core.info(`platform: ${platform}`);
6697+
core.info(`arch: ${arch}`);
6698+
6699+
core.info("Downloading...");
6700+
const url = `https://github.com/koki-develop/qiita-cli/releases/download/${version}/qiita_Linux_x86_64.tar.gz`;
66886701
const cliPath = await tc.downloadTool(url);
6702+
6703+
core.info("Installing...");
66896704
const extractedPath = await tc.extractTar(cliPath);
66906705
const binPath = await tc.cacheDir(extractedPath, "qiita", "0.1.0");
66916706
core.addPath(binPath);
6707+
core.info("Installed.");
66926708
})().catch((err) => {
66936709
core.setFailed(err.message);
66946710
});

0 commit comments

Comments
 (0)