File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ description: "Compile SQL to type-safe Go"
3
3
author : ' Kyle Conroy'
4
4
inputs :
5
5
sqlc-version :
6
- description : ' The version of sqlc to install. Defaults to v1.9.0 '
7
- required : false
6
+ description : ' The sqlc version to download (if necessary) and use. '
7
+ required : true
8
8
branding :
9
9
icon : ' terminal'
10
10
color : ' purple'
Original file line number Diff line number Diff line change @@ -3,7 +3,11 @@ import * as tc from '@actions/tool-cache'
3
3
4
4
async function run ( ) : Promise < void > {
5
5
try {
6
- const version = core . getInput ( 'sqlc-version' ) || '1.9.0'
6
+ const version = core . getInput ( 'sqlc-version' )
7
+ if ( ! version ) {
8
+ core . setFailed ( `sqlc-version not set` )
9
+ return
10
+ }
7
11
const toolDir = tc . find ( 'sqlc' , version , 'x64' )
8
12
if ( toolDir !== '' ) {
9
13
core . addPath ( toolDir )
You can’t perform that action at this time.
0 commit comments