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

3
dist/index.js vendored
View File

@ -1831,7 +1831,8 @@ function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const os_version = process.platform;
const version = yield utils.getInput('php-version', true);
let version = yield 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) {