mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 04:48:18 +00:00
Remove @actions/io
This commit is contained in:
parent
3aaf543b60
commit
39be9d4ef1
3 changed files with 2 additions and 5 deletions
5
index.js
5
index.js
|
@ -5,7 +5,6 @@ const io = require("@actions/io");
|
|||
const retry = require("async-retry");
|
||||
const semver = require("semver");
|
||||
const tc = require("@actions/tool-cache");
|
||||
const { relative } = require("path");
|
||||
|
||||
const NEXTFLOW_REPO = { owner: "nextflow-io", repo: "nextflow" };
|
||||
|
||||
|
@ -91,7 +90,7 @@ async function install_nextflow(url, version) {
|
|||
const temp_install_dir = fs.mkdtempSync(`nxf-${version}`);
|
||||
const nf_path = `${temp_install_dir}/nextflow`;
|
||||
|
||||
io.mv(nf_dl_path, nf_path);
|
||||
fs.renameSync(nf_dl_path, nf_path);
|
||||
fs.chmodSync(nf_path, "0711");
|
||||
|
||||
return temp_install_dir;
|
||||
|
@ -153,7 +152,7 @@ async function run() {
|
|||
);
|
||||
core.debug(`Added Nextflow to cache: ${nf_path}`);
|
||||
|
||||
io.rmRF(nf_install_path);
|
||||
fs.rmdirSync(nf_install_path, { recursive: true });
|
||||
} else {
|
||||
core.debug(`Using cached version of Nextflow: ${nf_path}`);
|
||||
}
|
||||
|
|
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -11,7 +11,6 @@
|
|||
"dependencies": {
|
||||
"@actions/core": "^1.8.2",
|
||||
"@actions/github": "^5.0.3",
|
||||
"@actions/io": "^1.1.2",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"async-retry": "^1.3.3",
|
||||
"semver": "^7.3.7"
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
"dependencies": {
|
||||
"@actions/core": "^1.8.2",
|
||||
"@actions/github": "^5.0.3",
|
||||
"@actions/io": "^1.1.2",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"async-retry": "^1.3.3",
|
||||
"semver": "^7.3.7"
|
||||
|
|
Loading…
Reference in a new issue