mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-23 23:29:07 +07:00
Refactor scripts and fix reading php-version
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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) {
|
||||
|
Reference in New Issue
Block a user