-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (35 loc) · 887 Bytes
/
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
name: "SQL to Go"
description: "Generate your structs"
inputs:
generate-funcs:
description: "If you generate the functions"
default: "true"
required: true
model-type:
description: "DB model type"
default: "bun"
required: true
output-folder:
description: "Output folder"
default: "out"
required: true
package-name:
description: "Package name"
default: "db"
required: true
sql-files:
description: "SQL files"
required: true
version:
description: "SQL to Go version"
required: true
default: master
runs:
using: "docker"
image: "docker://ghcr.io/thecampagnards/sql-to-go:master"
args:
- -generate-funcs=${{ inputs.generate-funcs }}
- -model-type=${{ inputs.model-type }}
- -output-folder=${{ inputs.output-folder }}
- -package-name=${{ inputs.package-name }}
- ${{ inputs.sql-files }}