File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ See [action.yml](./action.yml):
11
11
with :
12
12
# Skip OS checks that will stop installation attempts preemptively.
13
13
# Default: false
14
- skip-os-check : ' '
14
+ skip-os-check : false
15
15
16
16
# Version to use. Examples: 2008, 2012, 2014, etc. "latest" can also be used.
17
17
# Default: latest
18
- sqlserver-version : ' '
18
+ sqlserver-version : ' latest '
19
19
20
20
# Version of native client to install. Only 11 is supported.
21
21
native-client-version : ' '
@@ -25,11 +25,11 @@ See [action.yml](./action.yml):
25
25
26
26
# The SA user password to use.
27
27
# Default: yourStrong(!)Password
28
- sa-password : ' '
28
+ sa-password : ' yourStrong(!)Password '
29
29
30
30
# The database collation to use.
31
31
# Default: SQL_Latin1_General_CP1_CI_AS
32
- db-collation : ' '
32
+ db-collation : ' SQL_Latin1_General_CP1_CI_AS '
33
33
34
34
# Any custom install arguments you wish to use. These must be in the format of
35
35
# "/ARG=VAL".
@@ -38,7 +38,7 @@ See [action.yml](./action.yml):
38
38
# Wait for the database to respond successfully to queries before completing the
39
39
# action. A maximum of 10 attempts is made.
40
40
# Default: true
41
- wait-for-ready : ' '
41
+ wait-for-ready : true
42
42
` ` `
43
43
<!-- end usage -->
44
44
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ function updateUsage(
95
95
// Constrain the width of the description
96
96
const width = 80 ;
97
97
let description = ( input . description as string )
98
- . trimRight ( )
98
+ . trimEnd ( )
99
99
. replace ( / \r \n / g, '\n' ) // Convert CR to LF
100
100
. replace ( / + / g, ' ' ) // Squash consecutive spaces
101
101
. replace ( / \n / g, '\n' ) ; // Squash space followed by newline
@@ -123,15 +123,15 @@ function updateUsage(
123
123
}
124
124
125
125
// Append segment
126
- newReadme . push ( ` # ${ segment } ` . trimRight ( ) ) ;
126
+ newReadme . push ( ` # ${ segment } ` . trimEnd ( ) ) ;
127
127
128
128
// Remaining
129
129
description = description . substr ( segment . length ) ;
130
130
}
131
131
132
132
if ( input . default !== undefined ) {
133
133
// Append blank line if description had paragraphs
134
- if ( ( input . description as string ) . trimRight ( ) . match ( / \n [ ] * \r ? \n / ) ) {
134
+ if ( ( input . description as string ) . trimEnd ( ) . match ( / \n [ ] * \r ? \n / ) ) {
135
135
newReadme . push ( ` #` ) ;
136
136
}
137
137
@@ -140,7 +140,16 @@ function updateUsage(
140
140
}
141
141
142
142
// Input name
143
- newReadme . push ( ` ${ key } : ''` ) ;
143
+ let inputValue : string ;
144
+ switch ( input . default ) {
145
+ case 'true' :
146
+ case 'false' :
147
+ inputValue = input . default ;
148
+ break ;
149
+ default :
150
+ inputValue = `'${ input . default ?? '' } '` ;
151
+ }
152
+ newReadme . push ( ` ${ key } : ${ inputValue } ` ) ;
144
153
145
154
firstInput = false ;
146
155
}
You can’t perform that action at this time.
0 commit comments