Skip to content

Commit b0fc0a8

Browse files
committed
fix: fail pipeline on error
1 parent e4548d8 commit b0fc0a8

File tree

5 files changed

+6
-57
lines changed

5 files changed

+6
-57
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Simple SFTP / FTP deployment with NodeJS.
66

77
``` yml
88
- name: FTP Deployer
9-
uses: sand4rt/ftp-deployer@v1.6
9+
uses: sand4rt/ftp-deployer@v1.7
1010
with:
1111
sftp: false # optional
1212
host: ${{ secrets.FTP_HOST }} # e.g. ftp.host.com or sftp.host.com (without ftp:// or ftps://)

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51326,7 +51326,7 @@ new FtpDeploy()
5132651326
forcePasv: JSON.parse(core.getInput('passive')) || true // Passive mode is forced (EPSV command is not sent)
5132751327
})
5132851328
.then(response => core.info('Deploy finished:', response))
51329-
.catch(error => core.error(error));
51329+
.catch(error => core.setFailed(error));
5133051330
})();
5133151331

5133251332
module.exports = __webpack_exports__;

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ new FtpDeploy()
1818
forcePasv: JSON.parse(core.getInput('passive')) || true // Passive mode is forced (EPSV command is not sent)
1919
})
2020
.then(response => core.info('Deploy finished:', response))
21-
.catch(error => core.error(error));
21+
.catch(error => core.setFailed(error));

package-lock.json

Lines changed: 2 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ftp-deployer",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Simple SFTP / FTP deployment with NodeJS",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)