mirror of
https://github.com/appleboy/ssh-action.git
synced 2024-11-12 12:38:04 +00:00
docs: multiple command
This commit is contained in:
parent
77e02d0fad
commit
5bb5f67611
14
.github/main.workflow
vendored
14
.github/main.workflow
vendored
@ -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'",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
17
README.md
17
README.md
@ -65,6 +65,23 @@ action "Support Private Key" {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Multiple Commands
|
||||||
|
|
||||||
|
```
|
||||||
|
action "Multiple Commands" {
|
||||||
|
uses = "appleboy/ssh-action@master"
|
||||||
|
secrets = [
|
||||||
|
"HOST",
|
||||||
|
"KEY",
|
||||||
|
]
|
||||||
|
args = [
|
||||||
|
"--user", "actions",
|
||||||
|
"--script", "'whoami'",
|
||||||
|
"--script", "'ls -al'",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
see the detail of `drone-ssh` command
|
see the detail of `drone-ssh` command
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user