mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-25 08:09:08 +07:00
Fix reading unquoted versions
This commit is contained in:
@ -46,7 +46,8 @@ export async function build(
|
||||
export async function run(): Promise<void> {
|
||||
try {
|
||||
const os_version: string = process.platform;
|
||||
const version: string = await utils.getInput('php-version', true);
|
||||
let version: string = await 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) {
|
||||
|
Reference in New Issue
Block a user