mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-24 06:24:04 +07:00
Add ini_file input to set base php.ini
This commit is contained in:
@ -57,12 +57,17 @@ export async function run(): Promise<void> {
|
||||
const version: string = await utils.parseVersion(
|
||||
await utils.getInput('php-version', true)
|
||||
);
|
||||
const ini_file: string = await utils.parseIniFile(
|
||||
await utils.getInput('ini-file', false)
|
||||
);
|
||||
if (version) {
|
||||
const os_version: string = process.platform;
|
||||
const tool = await utils.scriptTool(os_version);
|
||||
const script = os_version + (await utils.scriptExtension(os_version));
|
||||
const location = await getScript(script, version, os_version);
|
||||
await exec(await utils.joins(tool, location, version, __dirname));
|
||||
await exec(
|
||||
await utils.joins(tool, location, version, ini_file, __dirname)
|
||||
);
|
||||
} else {
|
||||
core.setFailed('Unable to get the PHP version');
|
||||
}
|
||||
|
Reference in New Issue
Block a user