sneak/tools/copybara/copy.bara.sky

42 lines
1.1 KiB
Plaintext
Raw Normal View History

sourceUrlGitHub = "git@github.com:mcmillen/sneak.git"
destinationUrlGitHub = "git@github.com:mcmillen/sneak-public.git"
sourceUrlGitLab = "git@gitlab.com:SemiColinGames/sneak.git"
destinationUrlGitLab = "git@gitlab.com:SemiColinGames/sneak-public.git"
files = ["README.md", "tools/**", "Shared/**", "SharedTests/**", "Jumpy.Shared/**"]
core.workflow(
name = "github",
mode = "ITERATIVE",
origin = git.origin(
url = sourceUrlGitHub,
ref = "master",
),
destination = git.destination(
url = destinationUrlGitHub,
fetch = "master",
push = "master",
),
origin_files = glob(files),
authoring = authoring.pass_thru("Unknown Author <nobody@semicolin.games>"),
)
core.workflow(
name = "gitlab",
mode = "ITERATIVE",
origin = git.origin(
url = sourceUrlGitLab,
ref = "master",
),
destination = git.destination(
url = destinationUrlGitLab,
fetch = "master",
push = "master",
),
origin_files = glob(files),
authoring = authoring.pass_thru("Unknown Author <nobody@semicolin.games>"),
)