mirror of
https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2025-08-14 22:15:05 +00:00
Since debian's curl seemed incapable of using ssh keys, base docker images was changed to archlinux. Instead of installing git-ftp via aur, it is downloaded from git.
33 lines
771 B
TypeScript
33 lines
771 B
TypeScript
export interface IActionArguments {
|
|
ftp_server: string | undefined;
|
|
ftp_username: string | undefined;
|
|
ftp_password: string | undefined;
|
|
sftp_key: string | undefined;
|
|
|
|
/** @default "." */
|
|
local_dir: string | undefined;
|
|
|
|
/** @default "" */
|
|
gitFtpArgs: string | undefined;
|
|
|
|
/** @default "" */
|
|
knownHosts: string | undefined;
|
|
}
|
|
|
|
/**
|
|
* @see https://github.com/git-ftp/git-ftp/blob/master/man/git-ftp.1.md#exit-codes
|
|
*/
|
|
export enum gitFTPExitCode {
|
|
Successful = 0,
|
|
UnknownError = 1,
|
|
WrongUsage = 2,
|
|
MissingArguments = 3,
|
|
ErrorWhileUploading = 4,
|
|
ErrorWhileDownloading = 5,
|
|
UnknownProtocol = 6,
|
|
RemoteLocked = 7,
|
|
GitRelatedError = 8,
|
|
PreFTPPushHookFailed = 9,
|
|
LocalFileOperationFailed = 10
|
|
}
|