From b6ab795b71798649e62ea3963002a2c8ec6af95c Mon Sep 17 00:00:00 2001 From: Javier Restrepo Date: Thu, 20 Jan 2022 20:03:06 -0500 Subject: [PATCH] Add force flag --- README.md | 1 + action.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 58a068c..c8c0ab9 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ I strongly recommend you store your `password` as a secret. | `local-dir` | No | `./myFolderToPublish/` | `./` | Folder to upload from, must end with trailing slash `/` | | `server-dir` | No | `public_html/www/` | `./` | Folder to upload to (on the server), must end with trailing slash `/` | | `state-name` | No | `folder/.sync-state.json` | `.ftp-deploy-sync-state.json` | Path and name of the state file - this file is used to track which files have been deployed | +| `--force` | No | `true` | `false` | Force the deploy process, cleaning the `state-name` file and doing the deploy from scratch | | `dry-run` | No | `true` | `false` | Prints which modifications will be made with current config options, but doesn't actually make any changes | | `dangerous-clean-slate` | No | `true` | `false` | Deletes ALL contents of server-dir, even items in excluded with 'exclude' argument | | `exclude` | No | [See Example](#exclude-files) | [See Example](#exclude-files) | An array of glob patterns, these files will not be included in the publish/delete process. [List MUST be in this format](#exclude-files). You can use [a glob tester](https://www.digitalocean.com/community/tools/glob?comments=true&glob=%2A%2A%2F.git%2A%2F%2A%2A&matches=false&tests=test%2Fsam&tests=.git%2F&tests=.github%2F&tests=.git%2Ftest&tests=.gitattributes&tests=.gitignore&tests=.git%2Fconfig&tests=.git%2Ftest%2Ftest&tests=.github%2Fworkflows%2Fmain.yml&tests=test%2F.git%2Fworkflows%2Fmain.yml&tests=node_modules%2Ffolder%2F&tests=node_modules%2Fotherfolder%2F&tests=subfolder%2Fnode_modules%2F) to test your pattern(s). | diff --git a/action.yml b/action.yml index 89c7ecd..d04062e 100644 --- a/action.yml +++ b/action.yml @@ -26,6 +26,9 @@ inputs: state-name: required: false description: "Path and name of the state file - this file is used to track which files have been deployed" + force: + required: false + description: "Force the deploy process, cleaning the 'state-name' file and doing the deploy from scratch" dry-run: required: false description: "Prints which modifications will be made with current config options, but doesnt actually make any changes"