-
Notifications
You must be signed in to change notification settings - Fork 463
/
actions.nix
56 lines (49 loc) · 1.2 KB
/
actions.nix
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
47
48
49
50
51
52
53
54
55
56
{ cell
, inputs
}: {
"plutus/ci" = {
task = "ci";
io = ''
// This is a CUE expression that defines what events trigger a new run of this action.
// There is no documentation for this yet. Ask SRE if you have trouble changing this.
let github = {
#input: "${cell.library.actions.ci.input}"
#repo: "input-output-hk/plutus"
}
#lib.merge
#ios: [
#lib.io.github_push & github,
{ #lib.io.github_pr, github, #target_default: false },
]
'';
};
"plutus/benchmark" = {
task = "benchmark";
io = ''
#lib.io.github_pr_comment & {
#input: "${cell.library.actions.benchmark.input}"
#repo: "input-output-hk/plutus"
#comment: "^/benchmark .+"
}
'';
};
"plutus/publish-documents" = {
task = "publish-documents";
io = ''
let push = {
#lib.io.github_push
#input: "${cell.library.actions.documents.input}"
#repo: "input-output-hk/plutus"
inputs: _final_inputs
}
_final_inputs: inputs
inputs: {
push.inputs
"CI passed": match: {
ok: true
revision: push._revision
}
}
'';
};
}