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"
33author : ' Kyle Conroy'
44inputs :
55 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
88branding :
99 icon : ' terminal'
1010 color : ' purple'
Original file line number Diff line number Diff line change @@ -3,7 +3,11 @@ import * as tc from '@actions/tool-cache'
33
44async function run ( ) : Promise < void > {
55 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+ }
711 const toolDir = tc . find ( 'sqlc' , version , 'x64' )
812 if ( toolDir !== '' ) {
913 core . addPath ( toolDir )
You can’t perform that action at this time.
0 commit comments