mirror of
https://github.com/appleboy/ssh-action.git
synced 2025-06-20 16:42:10 +10:00
feat: support private key
This commit is contained in:
parent
b2e4f0522d
commit
12a5243afc
2 changed files with 83 additions and 11 deletions
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",
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue