Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated V4.3.2 to NodeJS16 #329

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -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"
Expand Down
21 changes: 11 additions & 10 deletions dist/index.js
Expand Up @@ -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(`----------------------------------------------------------------`);
Expand Down Expand Up @@ -9293,4 +9294,4 @@ module.exports = require("util");
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
;
;