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