Skip to content

Commit ab1785c

Browse files
authored
Fix/mysql version default value (#6)
* fix: value * fix: mysqlVersion default value --------- Co-authored-by: raoha.rh <[email protected]>
1 parent 37b79c2 commit ab1785c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/test/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const core = require('@actions/core');
22

33
const os = core.getInput('os').split(',').map(x => x.trim());
44
const version = core.getInput('version').split(',').map(x => x.trim());
5-
const mysqlVersion = core.getInput('mysql_version').split(',').map(x => x.trim());
5+
const mysqlVersionInput = core.getInput('mysql_version') || '5';
6+
const mysqlVersion = mysqlVersionInput.split(',').map(x => x.trim());
67

78
core.setOutput('os', JSON.stringify(os));
89
core.setOutput('version', JSON.stringify(version));

0 commit comments

Comments
 (0)