forked from InfuseAI/piperider-compare-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
84 lines (78 loc) · 2.64 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: 'PipeRider Compare Action'
description: 'Run the PipeRider Compare via GitHub Action'
author: 'InfuseAI'
branding:
icon: 'trending-up'
color: 'orange'
inputs:
github_token:
description: 'GITHUB_TOKEN or a personal access token.'
default: ${{ github.token }}
required: false
recipe:
description: 'The recipe to use for the comparison'
required: false
modified:
description: 'Only compare the modified models'
default: false
required: false
select:
description: 'Specify the dbt nodes to include'
required: false
skip_datasource:
description: 'Skip accessing the connection of datasource'
default: false
required: false
upload:
description: 'Whether to upload the comparison results to the cloud'
required: false
share:
description: 'Whether to make a share link'
required: false
cloud_project:
description: 'The cloud project to use for the comparison'
required: false
cloud_api_token:
description: 'The API token to use for the cloud API'
required: false
credentials_yml:
description: 'The content of the PipeRider credentials.yml file to use for the PipeRider project'
required: false
working_directory:
description: 'The working directory to use for the comparison'
required: false
piperider_version:
description: 'The version of PipeRider to use for the comparison'
required: false
outputs:
status:
description: 'The exit code status of the PipeRider comparison. This indicates whether the comparison was successful or not.'
value: ${{ steps.piperider-compare.outputs.status }}
uuid:
description: 'The UUID of the repository that was compared.'
value: ${{ steps.piperider-compare.outputs.uuid }}
runs:
using: "composite"
steps:
- id: piperider-compare
uses: InfuseAI/piperider-compare-action/compare-action@v1
if: github.event_name == 'pull_request'
with:
github_token: ${{ inputs.github_token }}
recipe: ${{ inputs.recipe }}
upload: ${{ inputs.upload }}
share: ${{ inputs.share }}
cloud_project: ${{ inputs.cloud_project }}
cloud_api_token: ${{ inputs.cloud_api_token }}
credentials_yml: ${{ inputs.credentials_yml }}
working_directory: ${{ inputs.working_directory }}
piperider_version: ${{ inputs.piperider_version }}
modified: ${{ inputs.modified }}
select: ${{ inputs.select }}
skip_datasource: ${{ inputs.skip_datasource }}
- name: Upload Generated Report
uses: actions/upload-artifact@v3
if: github.event_name == 'pull_request'
with:
name: reports
path: ./report