generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
119 lines (117 loc) · 4.59 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: 'Fastn Deploy Flow Action'
description: 'Github Action for deploying flows and other resources'
author: 'Fastn Inc.'
# Define your inputs here.
inputs:
# Source Inputs
source-domain:
description:
'fastn environment URI from where to fetch the resources e.g.
qa.fastn.ai., prod.fastn.ai'
required: true
source-project-id:
description: 'Project ID from where the resources will be fetched.'
required: true
source-resources:
description:
'Type of resources to export. Currently supported "All", "Flows",
"Connectors", "Models", "Templates", "Webhooks", "Widgets". Passed as
comma seperated strings.'
# Flow Inputs
source-flow-names:
description:
'Optional - Name of the flow to deploy. For multiple flows a comma
seperated list can be used e.g. flow1,flow2. If name is not provided all
flows will be fetched from source stage and deployed. Ignored if flows not
selected in source-resources.'
source-flow-stage:
description:
'Optional - stage from where to pick the flows. e.g. QA, DRAFT, LIVE.
Default is LIVE.'
# Connector Inputs
source-connector-org-id:
description:
'Org id of the connectors. For community connectors org id is passed as
community.'
source-connector-group-ids:
description:
'Optional - Name of the connector groups to deploy. For multiple a comma
seperated list can be used e.g. conn-grp1,conn-grp2. If name is not
provided all connector groups will be fetched from source stage and
deployed. Ignored if connectors not selected in source-resources.'
source-connector-ids:
description:
'Optional - Name of the connectors to deploy. For multiple connectors a
comma seperated list can be used e.g. conn1,conn2. If name is not provided
all connectors will be fetched from source stage and deployed. Ignored if
connectors not selected in source-resources.'
# Model Inputs
source-model-ids:
description:
'Optional - Name of the model to deploy. For multiple models a comma
seperated list can be used e.g. model1,model2. If name is not provided all
models will be fetched from source stage. Ignored if models not selected
in source-resources.'
# Template Inputs
source-template-ids:
description:
'Optional - Ids of the templates to deploy. For multiple templates a comma
seperated list can be used e.g. template1,template2. If id is not provided
all templates will be fetched from source project and copied to
destinaton. Ignored if templates not selected in source-resources'
source-template-org-id:
description:
'Org id of the templates. For community templates org id is passed as
community.'
# Webhook Inputs
source-webhook-ids:
description:
'Optional - Ids of the webhooks to deploy. For multiple webhooks a comma
seperated list can be used e.g. webhook1,webhook2. If id is not provided
all webhooks will be fetched from source project and copied to destinaton.
Ignored if webhooks not selected in source-resources'
# Widget Inputs
source-widget-ids:
description:
'Optional - Ids of the widgets to deploy. For multiple widgets a comma
seperated list can be used e.g. widget1,widget2. If id is not provided all
widgets will be fetched from source project and copied to destinaton.
Ignored if widgets not selected in source-resources'
# Source Auth
source-account-username:
description: 'Username of the source account.'
required: true
source-account-password:
description: 'Password of the source account.'
required: true
# Destination Inputs
destination-domain:
description:
'fastn environment where the resources will be deployed e.g. qa.fastn.ai'
required: true
destination-project-id:
description: 'Project ID where the resources will be deployed.'
required: true
# Flow Inputs
destination-flow-stage:
description:
'Optional - stage where the flows are deployed. e.g. QA, DRAFT, LIVE.
Default is LIVE.'
# Connector Input
destination-connector-org-id:
description:
'Connector org id in the destination where connectors will be deployed.'
# Template Inputs
destination-template-org-id:
description:
'Template org id in the destination where templates will be deployed.'
# Destination Auth
destination-account-username:
description: 'Username of the destination account.'
required: true
destination-account-password:
description: 'Password of the destination account.'
required: true
runs:
using: node20
main: dist/index.js