mirror of
https://github.com/appleboy/scp-action.git
synced 2024-11-24 08:05:07 +08:00
feat: Add source in command.
This commit is contained in:
parent
1af1019273
commit
9f07126ae4
14
.github/main.workflow
vendored
14
.github/main.workflow
vendored
@ -3,6 +3,7 @@ workflow "Copy File Via SSH" {
|
|||||||
resolves = [
|
resolves = [
|
||||||
"Copy file via ssh password",
|
"Copy file via ssh password",
|
||||||
"Copy file via ssh key",
|
"Copy file via ssh key",
|
||||||
|
"Add source in command",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,3 +32,16 @@ action "Copy file via ssh key" {
|
|||||||
"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"]
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user