forked from jayamanikharyono/airflow-dag-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
52 lines (49 loc) · 1.34 KB
/
action.yml
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
name: 'Airflow DAGs Validation'
author: jayamanikharyono
description: 'Validate DAGs, variables and dependencies on your workflows.'
branding:
icon: check
color: gray-dark
inputs:
dagPaths:
description: 'DAG dir to validate'
required: false
default: "dags"
pluginPaths:
description: 'Plugin dir to validate'
required: false
default: "plugins"
requirementsFile:
description: 'Path to requirements file that airflow use to run the DAG files.'
required: false
default: "requirements.txt"
varFile:
description: 'Path to var.json file that will be used to set Variable on airflow'
required: false
default: ""
connFile:
description: 'Path to conns.json file that will be used to set Connections on airflow'
required: false
default: ""
loadExamples:
description: 'Boolean flag for whether to load example dag or not'
required: false
default: "False"
accessToken:
description: 'Repo access token'
required: true
outputs:
validator-result:
description: 'DAGs validator result'
value: ${{ steps.run }}
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.requirementsFile }}
- ${{ inputs.dagPaths }}
- ${{ inputs.varFile }}
- ${{ inputs.connFile }}
- ${{ inputs.pluginPaths }}
- ${{ inputs.loadExamples }}
- ${{ inputs.accessToken }}