Fix reading unquoted versions

This commit is contained in:
Shivam Mathur
2019-12-14 10:13:01 +05:30
parent 8f8207a1ca
commit 2b027bd9bc
5 changed files with 15 additions and 6 deletions

View File

@ -46,7 +46,8 @@ export async function build(
export async function run(): Promise<void> {
try {
const os_version: string = process.platform;
const version: string = await utils.getInput('php-version', true);
let version: string = await utils.getInput('php-version', true);
version = version.length > 1 ? version : version + '.0';
// check the os version and run the respective script
let script_path = '';
switch (os_version) {