-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
44 lines (40 loc) · 1.32 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
name: 'Bytebase Create Plan From Release'
description: 'Create a plan from release on Bytebase.'
branding:
icon: 'database'
color: 'red'
inputs:
url:
description: The bytebase URL.
required: true
token:
description: The Bytebase access token.
required: true
project:
description: 'The project on Bytebase. Format: projects/{project}'
required: true
release:
description:
'The release to create plan from. Format:
projects/{project}/releases/{release}'
required: true
targets:
description: >
The database group or databases to deploy. Either a comma separated list
of the databases or a database group. Databases example:
`instances/mysql1/databases/db1,instances/mysql1/databases/db2`. Database
format: instances/{instance}/databases/{database} Database group example:
`projects/exa/databaseGroups/mygroup` Database group format:
projects/{project}/databaseGroups/{databaseGroup}
required: true
check-plan:
description: >
An enum to determine should we run plan checks and fail on warning or
error. Valid values are `SKIP`, `FAIL_ON_WARNING`, `FAIL_ON_ERROR`
default: FAIL_ON_ERROR
outputs:
plan:
description: 'The created plan. Format: projects/{project}/plans/{plan}'
runs:
using: node20
main: dist/index.js