using act for local debugging

Added act library for local debugging
Attempting to use exec argument escaping
This commit is contained in:
SamKirkland
2020-05-17 16:57:25 -05:00
parent b698c49eac
commit ae5262e007
6 changed files with 57 additions and 15 deletions

12
dist/index.js vendored
View File

@@ -1049,11 +1049,19 @@ function syncFiles(args) {
return __awaiter(this, void 0, void 0, function* () {
try {
yield core.group("Uploading files", () => __awaiter(this, void 0, void 0, function* () {
return yield exec.exec(`git ftp push --force --auto-init --verbose --syncroot ${args.local_dir} --user ${args.ftp_username} --passwd ${args.ftp_password} ${args.gitFtpArgs} ${args.ftp_server}`);
return yield exec.exec("git ftp push", [
"--force",
"--auto-init",
"--verbose",
`--syncroot=${args.local_dir}`,
`--user=${args.ftp_username}`,
`--passwd=${args.ftp_password}`,
args.gitFtpArgs,
args.ftp_server
]);
}));
}
catch (error) {
console.error("⚠️ Failed to upload files");
core.setFailed(error.message);
}
});