You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
workflow "Copy File Via SSH" {
|
|
|
|
on = "push"
|
|
|
|
resolves = [
|
|
|
|
"Copy file via ssh password",
|
|
|
|
"Copy file via ssh key",
|
|
|
|
"Add source in command",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Copy file via ssh password" {
|
|
|
|
uses = "appleboy/scp-action@master"
|
|
|
|
env = {
|
|
|
|
SOURCE = "tests/a.txt,tests/b.txt"
|
|
|
|
TARGET = "/home/actions/test"
|
|
|
|
}
|
|
|
|
secrets = [
|
|
|
|
"HOST",
|
|
|
|
"USERNAME",
|
|
|
|
"PASSWORD",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Copy file via ssh key" {
|
|
|
|
uses = "appleboy/scp-action@master"
|
|
|
|
env = {
|
|
|
|
SOURCE = "tests/a.txt,tests/b.txt"
|
|
|
|
TARGET = "/home/actions/test"
|
|
|
|
}
|
|
|
|
secrets = [
|
|
|
|
"HOST",
|
|
|
|
"USERNAME",
|
|
|
|
"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"]
|
|
|
|
}
|