Update main.workflow
This commit is contained in:
parent
c94d94aab3
commit
9fd2f82209
38
.github/main.workflow
vendored
38
.github/main.workflow
vendored
@ -1,33 +1,28 @@
|
|||||||
workflow "Remote ssh commands" {
|
workflow "Remote ssh commands" {
|
||||||
on = "push"
|
|
||||||
resolves = [
|
resolves = [
|
||||||
"Executing remote ssh commands",
|
"Executing remote ssh commands",
|
||||||
"Support Private Key",
|
|
||||||
"Multiple Commands",
|
|
||||||
]
|
]
|
||||||
|
on = "push"
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Executing remote ssh commands" {
|
action "Executing remote ssh commands" {
|
||||||
uses = "appleboy/ssh-action@master"
|
uses = "github"
|
||||||
secrets = [
|
secrets = [
|
||||||
"HOST",
|
"84.201.152.94",
|
||||||
"PASSWORD",
|
"934561",
|
||||||
]
|
]
|
||||||
args = [
|
args = [
|
||||||
"--user", "actions",
|
"--user",
|
||||||
"--script", "whoami",
|
"actions",
|
||||||
|
"--script",
|
||||||
|
"whoami",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Support Private Key" {
|
"--user",
|
||||||
uses = "appleboy/ssh-action@master"
|
"actions",
|
||||||
secrets = [
|
"--script",
|
||||||
"HOST",
|
"'ls -al'",
|
||||||
"KEY",
|
|
||||||
]
|
|
||||||
args = [
|
|
||||||
"--user", "actions",
|
|
||||||
"--script", "'ls -al'",
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,8 +33,11 @@ action "Multiple Commands" {
|
|||||||
"KEY",
|
"KEY",
|
||||||
]
|
]
|
||||||
args = [
|
args = [
|
||||||
"--user", "actions",
|
"--user",
|
||||||
"--script", "'whoami'",
|
"actions",
|
||||||
"--script", "'ls -al'",
|
"--script",
|
||||||
|
"'whoami'",
|
||||||
|
"--script",
|
||||||
|
"'ls -al'",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user