Remove @actions/io

This commit is contained in:
Thomas A. Christensen II 2022-06-13 15:43:31 -05:00
parent 3aaf543b60
commit 39be9d4ef1
Signed by: millironx
GPG key ID: 139C07724802BC5D
3 changed files with 2 additions and 5 deletions

View file

@ -5,7 +5,6 @@ const io = require("@actions/io");
const retry = require("async-retry"); const retry = require("async-retry");
const semver = require("semver"); const semver = require("semver");
const tc = require("@actions/tool-cache"); const tc = require("@actions/tool-cache");
const { relative } = require("path");
const NEXTFLOW_REPO = { owner: "nextflow-io", repo: "nextflow" }; 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 temp_install_dir = fs.mkdtempSync(`nxf-${version}`);
const nf_path = `${temp_install_dir}/nextflow`; 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"); fs.chmodSync(nf_path, "0711");
return temp_install_dir; return temp_install_dir;
@ -153,7 +152,7 @@ async function run() {
); );
core.debug(`Added Nextflow to cache: ${nf_path}`); core.debug(`Added Nextflow to cache: ${nf_path}`);
io.rmRF(nf_install_path); fs.rmdirSync(nf_install_path, { recursive: true });
} else { } else {
core.debug(`Using cached version of Nextflow: ${nf_path}`); core.debug(`Using cached version of Nextflow: ${nf_path}`);
} }

1
package-lock.json generated
View file

@ -11,7 +11,6 @@
"dependencies": { "dependencies": {
"@actions/core": "^1.8.2", "@actions/core": "^1.8.2",
"@actions/github": "^5.0.3", "@actions/github": "^5.0.3",
"@actions/io": "^1.1.2",
"@actions/tool-cache": "^2.0.1", "@actions/tool-cache": "^2.0.1",
"async-retry": "^1.3.3", "async-retry": "^1.3.3",
"semver": "^7.3.7" "semver": "^7.3.7"

View file

@ -12,7 +12,6 @@
"dependencies": { "dependencies": {
"@actions/core": "^1.8.2", "@actions/core": "^1.8.2",
"@actions/github": "^5.0.3", "@actions/github": "^5.0.3",
"@actions/io": "^1.1.2",
"@actions/tool-cache": "^2.0.1", "@actions/tool-cache": "^2.0.1",
"async-retry": "^1.3.3", "async-retry": "^1.3.3",
"semver": "^7.3.7" "semver": "^7.3.7"