-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy.bara.sky
47 lines (40 loc) · 1.16 KB
/
copy.bara.sky
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
core.workflow(
name = "default",
origin = git.origin(
url = "https://chromium.googlesource.com/infra/infra",
ref = "main",
),
destination = git.destination(
url = "file:///home/philwo/src/kajiya",
fetch = "main",
push = "main",
),
origin_files = glob([
"LICENSE",
"go/src/infra/build/kajiya/**"
]),
destination_files = glob(["**"], exclude = [
"copy.bara.sky",
"go.mod",
"go.sum",
"CONTRIBUTING.md",
]),
mode = "ITERATIVE",
reversible_check = True,
authoring = authoring.pass_thru("Philipp Wollermann <[email protected]>"),
transformations = [
core.replace(
before = "Copyright 2015",
after = "Copyright 2023",
paths = glob(["LICENSE"]),
),
core.replace(
before = "infra/build/kajiya",
after = "github.com/philwo/kajiya",
paths = glob(["**/*.go"])),
core.move(
before = "go/src/infra/build/kajiya",
after = "",
paths = glob(["**"], exclude = ["LICENSE"])),
],
)