Giter Site home page Giter Site logo

Comments (5)

Misiu avatar Misiu commented on May 17, 2024 1

@jcolls yes, but this will remove all existing files on Your FTP, as I workaround I added --no-empty-dirs. It's safer because it won't delete anything.

from ftp-deploy-action.

SamKirkland avatar SamKirkland commented on May 17, 2024 1

Sorry about this. ARGS is definitely supposed to be optional.
Should be fixed now!

--delete will remove files that exist on the server but don't exist on github.
Example: If I delete README.md and commit that change the file will still exist on the server but will not exist in source control.
If I use the --delete argument the README.md file will be removed from the server because it's no longer in source control.

from ftp-deploy-action.

jcolls avatar jcolls commented on May 17, 2024

Not sure if it's related but I'm getting the following error regarding Docker on the FTP-Deploy-Action step following this update.

/entrypoint.sh: line 12: ARGS: parameter not set
Starting FTP Deploy
Uploading files...
##[error]Docker run failed with exit code 2

update: I added ARGS --delete to my action and it completed successfully.

from ftp-deploy-action.

jcolls avatar jcolls commented on May 17, 2024

@jcolls yes, but this will remove all existing files on Your FTP, as I workaround I added --no-empty-dirs. It's safer because it won't delete anything.

Thanks. I thought --delete was to only remove files that did not exist, i.e if I delete a file then it will remove that file from FTP. But maybe this is achieved by deleting all and then uploading all.

I will change the ARGS to the one you have suggested for now. Cheers

from ftp-deploy-action.

Misiu avatar Misiu commented on May 17, 2024

@SamKirkland I see that in recent PR You assign a default value to ARGS, but why do you use REMOTE_DIR instead of ARGS? https://github.com/SamKirkland/FTP-Deploy-Action/blob/master/entrypoint.sh#L11
Shouldn't it be WDEFAULT_ARGS=${ARGS:-""}? 🙂

from ftp-deploy-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.