action-scp/.github/main.workflow

61 lines
1.1 KiB
Text
Raw Normal View History

2019-05-11 09:03:14 +00:00
workflow "Copy File Via SSH" {
2019-05-11 09:01:31 +00:00
on = "push"
resolves = [
2019-05-11 11:28:30 +00:00
"Copy file via ssh password",
"Copy file via ssh key",
2019-05-11 13:16:16 +00:00
"Add source in args",
"Add secret in args",
2019-05-11 09:01:31 +00:00
]
}
2019-05-11 11:28:30 +00:00
action "Copy file via ssh password" {
2019-05-11 09:01:31 +00:00
uses = "appleboy/scp-action@master"
env = {
SOURCE = "tests/a.txt,tests/b.txt"
TARGET = "/home/actions/test"
}
secrets = [
"HOST",
"USERNAME",
"PASSWORD",
]
}
2019-05-11 11:28:30 +00:00
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",
]
}
2019-05-11 12:34:40 +00:00
2019-05-11 13:16:16 +00:00
action "Add source in args" {
2019-05-11 12:34:40 +00:00
uses = "appleboy/scp-action@master"
env = {
TARGET = "/home/actions/test1234"
}
secrets = [
"HOST",
"USERNAME",
"KEY",
]
args = ["--source", "tests/a.txt", "--source", "tests/b.txt"]
}
2019-05-11 13:16:16 +00:00
action "Add secret in args" {
uses = "appleboy/scp-action@master"
env = {
TARGET = "/home/actions/test1234"
}
secrets = [
"HOST",
"KEY",
]
args = ["--username", "$USERNAME", "--source", "tests/a.txt", "--source", "tests/b.txt"]
}