-
Notifications
You must be signed in to change notification settings - Fork 68
/
daily-workflow.yaml
33 lines (33 loc) · 1.15 KB
/
daily-workflow.yaml
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
main:
steps:
- init:
assign:
- repository: projects/[PROJECT_ID]/locations/[REGION]/repositories/[REPOSITORY]
- createCompilationResult:
call: http.post
args:
url: ${"https://dataform.googleapis.com/v1beta1/" + repository + "/compilationResults"}
headers:
User-Agent: "cloud-solutions/security-analytics-usage-v1"
auth:
type: OAuth2
body:
gitCommitish: main
result: compilationResult
- createWorkflowInvocation:
call: http.post
args:
url: ${"https://dataform.googleapis.com/v1beta1/" + repository + "/workflowInvocations"}
headers:
User-Agent: "cloud-solutions/security-analytics-usage-v1"
auth:
type: OAuth2
body:
compilationResult: ${compilationResult.body.name}
invocationConfig:
includedTags:
- daily
transitiveDependenciesIncluded: true
result: workflowInvocation
- complete:
return: ${workflowInvocation.body.name}