ssh/.github/main.workflow

32 lines
507 B
Text
Raw Normal View History

2019-05-15 06:47:53 +08:00
workflow "Remote ssh commands" {
on = "push"
resolves = [
"Executing remote ssh commands",
2019-05-15 06:47:53 +08:00
"Support Private Key",
]
}
action "Executing remote ssh commands" {
uses = "appleboy/ssh-action@master"
secrets = [
"HOST",
"PASSWORD",
]
args = [
"--user", "actions",
"--script", "whoami",
]
}
2019-05-15 06:47:53 +08:00
action "Support Private Key" {
uses = "appleboy/ssh-action@master"
secrets = [
"HOST",
"KEY",
]
args = [
"--user", "actions",
2019-05-15 06:50:16 +08:00
"--script", "'ls -al'",
2019-05-15 06:47:53 +08:00
]
}