-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
50 lines (50 loc) · 1.47 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
name: "Alembic Migration Checker"
author: "DevGlitch"
description: "Automate Alembic database migration checks for PostgreSQL, MySQL, and SQLite in CI/CD workflows"
branding:
icon: "check-circle"
color: "blue"
inputs:
db_url:
description: "Database URL. Alternative to specifying individual database connection parameters. Default: ''"
required: false
default: ""
db_type:
description: "Database type. Supported types are 'postgresql', 'mysql', and 'sqlite'. Default: 'postgresql'"
required: false
default: "postgresql"
db_host:
description: "Database host"
required: false
default: ""
db_port:
description: "Database port. Not required for SQLite. Default: 5432."
required: false
default: '5432'
db_user:
description: "Database user. Not required for SQLite."
required: false
default: ""
db_password:
description: "Database password. Not required for SQLite."
required: false
default: ""
db_name:
description: "Database name. Not required for SQLite."
required: true
migrations_path:
description: "Path to the Alembic migrations folder. Default: './migrations/'"
required: false
default: "./migrations/"
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.db_url }}
- ${{ inputs.db_type }}
- ${{ inputs.db_host }}
- ${{ inputs.db_port }}
- ${{ inputs.db_user }}
- ${{ inputs.db_password }}
- ${{ inputs.db_name }}
- ${{ inputs.migrations_path }}