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

Commit 9873dbf

Browse files
committed
version を渡すようにした
1 parent 1d93f09 commit 9873dbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ const owner = "koki-develop";
66
const repo = "qiita-cli";
77

88
/**
9+
* @param {String} version
910
* @param {String} path
1011
* @returns {Promise<String>}
1112
*/
12-
const _install = async (path) => {
13+
const _install = async (version, path) => {
1314
core.info("Installing...");
1415

1516
const extractedPath = await (async () => {
@@ -110,7 +111,7 @@ const _download = async (version) => {
110111
(async () => {
111112
const version = await _getVersion(core.getInput("version"));
112113
const cliPath = await _download(version);
113-
await _install(cliPath);
114+
await _install(version, cliPath);
114115
})().catch((err) => {
115116
core.setFailed(err.message);
116117
});

0 commit comments

Comments
 (0)