-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
104 lines (91 loc) · 3.39 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
name: System Initiative GitHub Action
description:
Interact with the System Initiative workspace from within a GitHub Action
author: System Initiative
branding:
icon: box
color: black
# Define your inputs here.
inputs:
workspaceId:
description:
The id of the workspace in which to interact. If this is not specified, we
will retrive the workspaceId from the specific token used. If the
workspaceId doesn't match the workspace the token is generated for then we
will return an error.
required: false
changeSet:
description: The name of the change set to create to make changes in.
required: true
componentId:
description: The ID of the component to run the management function on.
required: true
domain:
description: |
A YAML or JSON object containing the domain properties to set for the management function component.
For example:
```json
domain:
Region: us-east-1
BaseCidrBlock: 10.0.0.0/16
Tags: ["tag1", "tag2"]
```
You may specify property keys as names, property IDs, or paths (e.g. { "name/first": "John", "name/last": "Doe" }).
Each property's value will be replaced with the new value. Properties not specified are left alone.
If this is not specified, no properties will be set.
managementFunction:
description:
The name of the management function to run. This is optional if the
component only has one management function.
view:
description:
The name of view to run inside. This is optional if the component is only
in one view.
applyOnSuccess:
description:
Whether to apply the change set to main after triggering the management
function. Set to "force" to force apply (if your user has permission to do
so).
default: 'true'
waitForApproval:
description: Whether to wait for approval before applying the changeset (and
fail if it is rejected).
By default, we do not wait. If applyOnSuccess is anything but true (the
default), this is ignored.
If this is true, we will also wait for actions to complete unless you
explicitly set waitForActions=false.
default: 'false'
waitForActions:
description: Whether to wait for actions to complete (and fail if the
actions fail).
By default, we wait for actions if applyOnSuccess=force or
waitForApproval=true--otherwise this setting is ignored.
default: 'true'
pollIntervalSeconds:
description:
Length of time (in seconds) between checks when polling for changeset
status
default: '10'
apiToken:
description: |
The API token. You can create one by going to
https://auth.systeminit.com/workspaces/, clicking on the Settings (gear)
icon on your workspace, and selecting "API Tokens." Then enter a name and
expiration, and click "Generate API Token."
You should use GitHub's secrets mechanism to store and pass this.
required: true
# Define your outputs here.
outputs:
managementFunctionLogs:
description: The logs from the management function.
workspaceId:
description: The ID of the workspace containing the component.
changeSetId:
description: The ID of the changeset created.
changeSetWebUrl:
description: The web URL to the changeset.
componentWebUrl:
description: The web URL to the component.
runs:
using: node20
main: 'dist/index.js'