mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-01-23 17:13:48 +07:00
Refactor scripts and fix reading php-version
This commit is contained in:
@@ -49,7 +49,7 @@ export async function run(): Promise<void> {
|
||||
try {
|
||||
const os_version: string = process.platform;
|
||||
let version: string = await 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