mirror of
https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2026-04-10 12:32:17 +02:00
v3.0.0
Complete rewrite! Switched from LFTP to git-ftp Upload diffs based on git history by default lower case kebab argument names Migrated from shell to typescript Added FTP and SFTP tests .git-ftp-ignore and .git-ftp-include support
This commit is contained in:
28
src/types.ts
Normal file
28
src/types.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
export interface IActionArguments {
|
||||
ftp_server: string | undefined;
|
||||
ftp_username: string | undefined;
|
||||
ftp_password: string | undefined;
|
||||
|
||||
/** @default "." */
|
||||
local_dir: string | undefined;
|
||||
|
||||
/** @default "" */
|
||||
gitFtpArgs: 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,
|
||||
NotAGitProject = 8,
|
||||
PreFTPPushHookFailed = 9,
|
||||
LocalFileOperationFailed = 10
|
||||
}
|
||||
Reference in New Issue
Block a user