forked from planetscale/create-branch-password-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
37 lines (37 loc) · 1.04 KB
/
action.yaml
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
name: 'Create Database Password'
description: 'Creates a password for a PlanetScale database.'
branding:
color: 'orange'
icon: 'database'
inputs:
database_name:
description: 'The name of the database'
required: true
branch_name:
description: 'The name of the branch'
required: true
name:
description: 'The name of password'
required: true
org_name:
description: 'The name of the organization that owns the database'
required: true
role:
description: 'The role of the password. Allowed values are `reader`, `writer`, `readwriter`, or `admin`. Defaults to `admin`.'
required: false
outputs:
username:
description: 'The username to use for connecting to the branch.'
password:
description: 'The password to use for connecting to the branch.'
hostname:
description: 'The hostname for the branch.'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.database_name }}
- ${{ inputs.branch_name }}
- ${{ inputs.name }}
- ${{ inputs.org_name }}
- ${{ inputs.role }}