From 9f07126ae43ce5f73a6769c79f58c07380637626 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 11 May 2019 20:34:40 +0800 Subject: [PATCH] feat: Add source in command. --- .github/main.workflow | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/main.workflow b/.github/main.workflow index 00640eb..e4eb40c 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -3,6 +3,7 @@ workflow "Copy File Via SSH" { resolves = [ "Copy file via ssh password", "Copy file via ssh key", + "Add source in command", ] } @@ -31,3 +32,16 @@ action "Copy file via ssh key" { "KEY", ] } + +action "Add source in command" { + uses = "appleboy/scp-action@master" + env = { + TARGET = "/home/actions/test1234" + } + secrets = [ + "HOST", + "USERNAME", + "KEY", + ] + args = ["--source", "tests/a.txt", "--source", "tests/b.txt"] +}