|
|
@ -3,6 +3,7 @@ workflow "Remote ssh commands" {
|
|
|
|
resolves = [
|
|
|
|
resolves = [
|
|
|
|
"Executing remote ssh commands",
|
|
|
|
"Executing remote ssh commands",
|
|
|
|
"Support Private Key",
|
|
|
|
"Support Private Key",
|
|
|
|
|
|
|
|
"Multiple Commands",
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -29,3 +30,16 @@ action "Support Private Key" {
|
|
|
|
"--script", "'ls -al'",
|
|
|
|
"--script", "'ls -al'",
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
action "Multiple Commands" {
|
|
|
|
|
|
|
|
uses = "appleboy/ssh-action@master"
|
|
|
|
|
|
|
|
secrets = [
|
|
|
|
|
|
|
|
"HOST",
|
|
|
|
|
|
|
|
"KEY",
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
args = [
|
|
|
|
|
|
|
|
"--user", "actions",
|
|
|
|
|
|
|
|
"--script", "'whoami'",
|
|
|
|
|
|
|
|
"--script", "'ls -al'",
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|