Fix reading php version

This commit is contained in:
Shivam Mathur
2020-02-17 21:14:04 +05:30
parent ac570d4c61
commit 6efc9a6099
4 changed files with 19 additions and 17 deletions

3
dist/index.js vendored
View File

@@ -1550,7 +1550,8 @@ const utils = __importStar(__webpack_require__(163));
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const version = yield utils.getInput('php-version', true);
let version = yield utils.getInput('php-version', true);
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
const extensions = yield utils.getInput('extensions', true);
const key = yield utils.getInput('key', true);
const script_path = path.join(__dirname, '../src/extensions.sh');