-
Notifications
You must be signed in to change notification settings - Fork 1
/
trigger.dhall
34 lines (32 loc) · 1.04 KB
/
trigger.dhall
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
let Map =
https://raw.githubusercontent.com/dhall-lang/dhall-lang/v21.1.0/Prelude/Map/Type.dhall
sha256:210c7a9eba71efbb0f7a66b3dcf8b9d3976ffc2bc0e907aadfb6aa29c333e8ed
let Trigger =
{ Type =
{ trigger : Text
, label : Text
, branches : Optional Text
, build :
Optional
{ message : Text
, commit : Text
, branch : Text
, env : Map Text Text
}
}
, default =
{ branches = None Text
, build = Some
{ message = "\${BUILDKITE_MESSAGE}"
, commit = "\${BUILDKITE_COMMIT}"
, branch = "\${BUILDKITE_BRANCH}"
, env = toMap
{ BUILDKITE_PULL_REQUEST = "\${BUILDKITE_PULL_REQUEST}"
, BUILDKITE_PULL_REQUEST_BASE_BRANCH =
"\${BUILDKITE_PULL_REQUEST_BASE_BRANCH}"
, BUILDKITE_PULL_REQUEST_REPO = "\${BUILDKITE_PULL_REQUEST_REPO}"
}
}
}
}
in Trigger