sand4rt / ftp-deployer

Simple SFTP / FTP deployment with NodeJS.
https://github.com/marketplace/actions/ftp-deployer
MIT License
47 stars 12 forks source link

JSONparse error when using the example with exclude #8

Closed Matt-17 closed 2 years ago

Matt-17 commented 3 years ago

After trying a while, I figured out, it must be exclude: '["node_modules/", ".git/", "*.env"]'

The whole array must be in a string and all values must be in double ".

Also I get this warning: (node:2932) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

sand4rt commented 3 years ago

Thanks for creating the issue. Fancy to open a PR and fix the parser? line 15 till 18 needs refactoring: https://github.com/sand4rt/ftp-deployer/blob/master/index.js#L15

sand4rt commented 2 years ago

Fixed in: https://github.com/sand4rt/ftp-deployer/commit/507ed402058a303fd286718801d09cf63582813e