Skip to content

Commit

Permalink
docs: multiple command
Browse files Browse the repository at this point in the history
  • Loading branch information
appleboy committed May 14, 2019
1 parent 77e02d0 commit 5bb5f67
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ workflow "Remote ssh commands" {
resolves = [
"Executing remote ssh commands",
"Support Private Key",
"Multiple Commands",
]
}

Expand All @@ -29,3 +30,16 @@ action "Support Private Key" {
"--script", "'ls -al'",
]
}

action "Multiple Commands" {
uses = "appleboy/ssh-action@master"
secrets = [
"HOST",
"KEY",
]
args = [
"--user", "actions",
"--script", "'whoami'",
"--script", "'ls -al'",
]
}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down

0 comments on commit 5bb5f67

Please sign in to comment.