Skip to content

Commit 5bb5f67

Browse files
committed
docs: multiple command
1 parent 77e02d0 commit 5bb5f67

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/main.workflow

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ workflow "Remote ssh commands" {
33
resolves = [
44
"Executing remote ssh commands",
55
"Support Private Key",
6+
"Multiple Commands",
67
]
78
}
89

@@ -29,3 +30,16 @@ action "Support Private Key" {
2930
"--script", "'ls -al'",
3031
]
3132
}
33+
34+
action "Multiple Commands" {
35+
uses = "appleboy/ssh-action@master"
36+
secrets = [
37+
"HOST",
38+
"KEY",
39+
]
40+
args = [
41+
"--user", "actions",
42+
"--script", "'whoami'",
43+
"--script", "'ls -al'",
44+
]
45+
}

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,23 @@ action "Support Private Key" {
6565
}
6666
```
6767

68+
Multiple Commands
69+
70+
```
71+
action "Multiple Commands" {
72+
uses = "appleboy/ssh-action@master"
73+
secrets = [
74+
"HOST",
75+
"KEY",
76+
]
77+
args = [
78+
"--user", "actions",
79+
"--script", "'whoami'",
80+
"--script", "'ls -al'",
81+
]
82+
}
83+
```
84+
6885
see the detail of `drone-ssh` command
6986

7087
```

0 commit comments

Comments
 (0)