From d303734f9e829da8f5bff96720e6bb2c9f365233 Mon Sep 17 00:00:00 2001 From: papeloto Date: Sat, 21 Mar 2020 12:46:09 +0100 Subject: [PATCH] chore: print files --- dist/index.js | 6 +++++- index.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 79ded56..5227f68 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61,12 +61,16 @@ const core = __webpack_require__(470); const inputFiles = core.getInput("files", { required: true }); const filename = core.getInput("filename"); -const files = inputFiles.split(" "); +const files = inputFiles + .split(" ") + .map(file => path.join(process.env.GITHUB_WORKSPACE, file)); console.log(`Ready to zip "${inputFiles}" into ${filename}`); const zip = new AdmZip(); +console.log(files); + files.forEach(file => { if (!fs.existsSync(file)) { console.log(` - ${file} (Not Found)`); diff --git a/index.js b/index.js index a1348a2..8e160ac 100644 --- a/index.js +++ b/index.js @@ -6,12 +6,16 @@ const core = require("@actions/core"); const inputFiles = core.getInput("files", { required: true }); const filename = core.getInput("filename"); -const files = inputFiles.split(" "); +const files = inputFiles + .split(" ") + .map(file => path.join(process.env.GITHUB_WORKSPACE, file)); console.log(`Ready to zip "${inputFiles}" into ${filename}`); const zip = new AdmZip(); +console.log(files); + files.forEach(file => { if (!fs.existsSync(file)) { console.log(` - ${file} (Not Found)`);