feat: support private key
This commit is contained in:
15
.github/main.workflow
vendored
15
.github/main.workflow
vendored
@ -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",
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user