diff --git a/action.yml b/action.yml index 0fdaf2c..1bb1b1c 100644 --- a/action.yml +++ b/action.yml @@ -45,7 +45,7 @@ inputs: required: false description: "Timeout in milliseconds for FTP operations" runs: - using: "node12" + using: "node16" main: "dist/index.js" branding: icon: "upload-cloud" diff --git a/dist/index.js b/dist/index.js index 0528622..b5369ab 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3242,15 +3242,16 @@ function getServerFiles(client, logger, timings, args) { logger.all("Clear complete"); throw new Error("dangerous-clean-slate was run"); } - const serverFiles = yield downloadFileList(client, logger, args["state-name"]); - logger.all(`----------------------------------------------------------------`); - logger.all(`Last published on 📅 ${new Date(serverFiles.generatedTime).toLocaleDateString(undefined, { weekday: "long", year: "numeric", month: "long", day: "numeric", hour: "numeric", minute: "numeric" })}`); - // apply exclude options to server - if (args.exclude.length > 0) { - const filteredData = serverFiles.data.filter((item) => (0, utilities_1.applyExcludeFilter)({ path: item.name, isDirectory: () => item.type === "folder" }, args.exclude)); - serverFiles.data = filteredData; - } - return serverFiles; +// const serverFiles = yield downloadFileList(client, logger, args["state-name"]); +// logger.all(`----------------------------------------------------------------`); +// logger.all(`Last published on 📅 ${new Date(serverFiles.generatedTime).toLocaleDateString(undefined, { weekday: "long", year: "numeric", month: "long", day: "numeric", hour: "numeric", minute: "numeric" })}`); +// // apply exclude options to server +// if (args.exclude.length > 0) { +// const filteredData = serverFiles.data.filter((item) => (0, utilities_1.applyExcludeFilter)({ path: item.name, isDirectory: () => item.type === "folder" }, args.exclude)); +// serverFiles.data = filteredData; +// } +// return serverFiles; + throw new Error("upload all files"); } catch (error) { logger.all(`----------------------------------------------------------------`); @@ -9293,4 +9294,4 @@ module.exports = require("util"); /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; \ No newline at end of file +;