ssh-action/.github/main.workflow

32 lines
505 B
Plaintext
Raw Normal View History

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