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

Commit 1a52627

Browse files
committed
位置を修正
1 parent 3f1948b commit 1a52627

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ const tc = require("@actions/tool-cache");
55
const owner = "koki-develop";
66
const repo = "qiita-cli";
77

8-
(async () => {
9-
const version = await _getVersion(core.getInput("version"));
10-
const cliPath = await _download(version);
11-
await _install(cliPath);
12-
})().catch((err) => {
13-
core.setFailed(err.message);
14-
});
15-
168
/**
179
* @param {String} path
1810
* @returns {Promise<String>}
@@ -110,3 +102,11 @@ const _download = async (version) => {
110102

111103
return cliPath;
112104
};
105+
106+
(async () => {
107+
const version = await _getVersion(core.getInput("version"));
108+
const cliPath = await _download(version);
109+
await _install(cliPath);
110+
})().catch((err) => {
111+
core.setFailed(err.message);
112+
});

0 commit comments

Comments
 (0)