feat: support private key

This commit is contained in:
Bo-Yi Wu 2019-05-15 06:47:53 +08:00
parent b2e4f0522d
commit 12a5243afc
2 changed files with 83 additions and 11 deletions

15
.github/main.workflow vendored
View file

@ -1,7 +1,8 @@
workflow "Copy File Via SSH" {
workflow "Remote ssh commands" {
on = "push"
resolves = [
"Executing remote ssh commands",
"Support Private Key",
]
}
@ -16,3 +17,15 @@ action "Executing remote ssh commands" {
"--script", "whoami",
]
}
action "Support Private Key" {
uses = "appleboy/ssh-action@master"
secrets = [
"HOST",
"KEY",
]
args = [
"--user", "actions",
"--script", "ls -al",
]
}