chore: print files

This commit is contained in:
papeloto 2020-03-21 12:46:09 +01:00
parent a136662816
commit d303734f9e
2 changed files with 10 additions and 2 deletions

6
dist/index.js vendored
View file

@ -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)`);

View file

@ -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)`);