forked from bytebase/login-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
34 lines (34 loc) · 1.06 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
name: 'Bytebase Login'
description: 'Login to your Bytebase service'
inputs:
bytebase-url:
description: "The Bytebase instance URL, should be the Bytebase external URL"
required: true
api-version:
description: "Bytebase API version"
required: false
default: "v1"
service-key:
description: "The Bytebase service account key"
required: true
service-secret:
description: "The Bytebase service account secret"
required: true
outputs:
token:
description: "The API token obtained from bytebase/login action"
value: ${{ steps.bytebase-login.outputs.token }}
api_url:
description: "The Bytebase API URL with version"
value: ${{ steps.bytebase-login.outputs.api_url }}
runs:
using: "composite"
steps:
- name: Login
id: bytebase-login
shell: bash
run: |
$GITHUB_ACTION_PATH/main.sh --url="${{ inputs.bytebase-url }}" --version="${{ inputs.api-version }}" --service-key="${{ inputs.service-key }}" --service-secret="${{ inputs.service-secret }}"
branding:
icon: "database"
color: "gray-dark"