Skip to content

Commit

Permalink
0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
garygrossgarten committed Jan 21, 2021
1 parent 73a45d6 commit 52ba875
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11391,6 +11391,7 @@ function scp(ssh, local, remote, dotfiles = false, concurrency, verbose = true,
console.error(`⚠️ An error happened:(.`, err.message, err.stack);
ssh.dispose();
process.abort();
core.setFailed(err.message);
}
});
}
Expand Down Expand Up @@ -11438,6 +11439,7 @@ function cleanDirectory(ssh, remote, verbose = true) {
catch (error) {
console.error(`⚠️ An error happened:(.`, error.message, error.stack);
ssh.dispose();
core.setFailed(error.message);
}
});
}
Expand All @@ -11452,6 +11454,7 @@ function putFile(ssh, local, remote, verbose = true) {
catch (error) {
console.error(`⚠️ An error happened:(.`, error.message, error.stack);
ssh.dispose();
core.setFailed(error.message);
}
});
}
Expand Down
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function scp(ssh, local, remote, dotfiles = false, concurrency, verbose = true,
console.error(`⚠️ An error happened:(.`, err.message, err.stack);
ssh.dispose();
process.abort();
core.setFailed(err.message);
}
});
}
Expand Down Expand Up @@ -183,6 +184,7 @@ function cleanDirectory(ssh, remote, verbose = true) {
catch (error) {
console.error(`⚠️ An error happened:(.`, error.message, error.stack);
ssh.dispose();
core.setFailed(error.message);
}
});
}
Expand All @@ -197,6 +199,7 @@ function putFile(ssh, local, remote, verbose = true) {
catch (error) {
console.error(`⚠️ An error happened:(.`, error.message, error.stack);
ssh.dispose();
core.setFailed(error.message);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@garygrossgarten/github-action-scp",
"version": "0.7.1",
"version": "0.7.2",
"description": "Copy a folder to a remote server using SSH.",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ async function scp(
console.error(`⚠️ An error happened:(.`, err.message, err.stack);
ssh.dispose();
process.abort();
core.setFailed(err.message);
}
}
async function putDirectory(
Expand Down Expand Up @@ -202,6 +203,8 @@ async function cleanDirectory(ssh: NodeSSH, remote: string, verbose = true) {
} catch (error) {
console.error(`⚠️ An error happened:(.`, error.message, error.stack);
ssh.dispose();
core.setFailed(error.message);

}
}

Expand All @@ -219,6 +222,7 @@ async function putFile(
} catch (error) {
console.error(`⚠️ An error happened:(.`, error.message, error.stack);
ssh.dispose();
core.setFailed(error.message);
}
}

Expand Down

0 comments on commit 52ba875

Please sign in to comment.