Skip to content

Commit 7f68995

Browse files
author
sand4rt
committed
Made remote_folder optional
1 parent 015c4f0 commit 7f68995

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Fast nodejs ftp deployment with github actions.
1717
# Ftp password
1818
password: ${{ secrets.FTP_PASSWORD }}
1919
# The remote folder location of your FTP server
20-
remote_folder: ${{ secrets.FTP_REMOTE_FOLDER }}
20+
remote_folder: ${{ secrets.FTP_REMOTE_FOLDER }} # optional
2121
# The local folder location
2222
local_folder: dist # optional, default is dist
2323
# Remove existing files inside FTP remote folder

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inputs:
1919
required: true
2020
description: 'Ftp password'
2121
remote_folder:
22-
required: true
22+
required: false
2323
description: 'The remote folder location of your FTP server'
2424
local_folder:
2525
required: false

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3111,7 +3111,7 @@ new FtpDeploy()
31113111
port: JSON.parse(core.getInput('port')) || 21,
31123112
user: core.getInput('username', { required: true }),
31133113
password: core.getInput('password', { required: true }),
3114-
remoteRoot: core.getInput('remote_folder', { required: true }),
3114+
remoteRoot: core.getInput('remote_folder') || '',
31153115
localRoot: core.getInput('local_folder') || 'dist', // __dirname + '/local-folder',
31163116
deleteRemote: JSON.parse(core.getInput('cleanup')) || false, // If true, delete ALL existing files at destination before uploading
31173117
include: JSON.parse(core.getInput('include')) || [], // this would upload everything except dot files

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ new FtpDeploy()
99
port: JSON.parse(core.getInput('port')) || 21,
1010
user: core.getInput('username', { required: true }),
1111
password: core.getInput('password', { required: true }),
12-
remoteRoot: core.getInput('remote_folder', { required: true }),
12+
remoteRoot: core.getInput('remote_folder') || '',
1313
localRoot: core.getInput('local_folder') || 'dist', // __dirname + '/local-folder',
1414
deleteRemote: JSON.parse(core.getInput('cleanup')) || false, // If true, delete ALL existing files at destination before uploading
1515
include: JSON.parse(core.getInput('include')) || [], // this would upload everything except dot files

0 commit comments

Comments
 (0)