From 9fd2f82209b7b4fb64cbcfede4ca0a87e0b3fb09 Mon Sep 17 00:00:00 2001 From: tyaros93 Date: Sat, 28 Sep 2019 09:50:49 +0300 Subject: [PATCH] Update main.workflow --- .github/main.workflow | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index f7a09d8..1e4ce5e 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,33 +1,28 @@ workflow "Remote ssh commands" { - on = "push" resolves = [ "Executing remote ssh commands", - "Support Private Key", - "Multiple Commands", ] + on = "push" } action "Executing remote ssh commands" { - uses = "appleboy/ssh-action@master" + uses = "github" secrets = [ - "HOST", - "PASSWORD", + "84.201.152.94", + "934561", ] args = [ - "--user", "actions", - "--script", "whoami", + "--user", + "actions", + "--script", + "whoami", ] } -action "Support Private Key" { - uses = "appleboy/ssh-action@master" - secrets = [ - "HOST", - "KEY", - ] - args = [ - "--user", "actions", - "--script", "'ls -al'", + "--user", + "actions", + "--script", + "'ls -al'", ] } @@ -38,8 +33,11 @@ action "Multiple Commands" { "KEY", ] args = [ - "--user", "actions", - "--script", "'whoami'", - "--script", "'ls -al'", + "--user", + "actions", + "--script", + "'whoami'", + "--script", + "'ls -al'", ] }