diff --git a/.github/main.workflow b/.github/main.workflow index 1f5f15f..f7a09d8 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -3,6 +3,7 @@ workflow "Remote ssh commands" { resolves = [ "Executing remote ssh commands", "Support Private Key", + "Multiple Commands", ] } @@ -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'", + ] +} diff --git a/README.md b/README.md index 76d04c3..b2feaa1 100644 --- a/README.md +++ b/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 ```