Refactor scripts and fix reading php-version

This commit is contained in:
Shivam Mathur
2019-12-20 18:29:05 +05:30
parent a507be73b5
commit 935e74fb40
5 changed files with 173 additions and 133 deletions

2
dist/index.js vendored
View File

@ -1906,7 +1906,7 @@ function run() {
try {
const os_version = process.platform;
let version = yield utils.getInput('php-version', true);
version = version.length > 1 ? version : version + '.0';
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
// check the os version and run the respective script
let script_path = '';
switch (os_version) {