mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-04-13 22:54:17 +07:00
feat: set this via an environment variable instead
This commit is contained in:
parent
310e481b83
commit
78e1c95060
@ -27,10 +27,6 @@ inputs:
|
||||
tools:
|
||||
description: 'Setup popular tools globally.'
|
||||
required: false
|
||||
tools-dir:
|
||||
description: 'Directory where all tools will be installed to.'
|
||||
defaut: '/usr/local/bin'
|
||||
required: false
|
||||
outputs:
|
||||
php-version:
|
||||
description: 'PHP version in semver format'
|
||||
|
@ -19,7 +19,6 @@ export async function getScript(os: string): Promise<string> {
|
||||
const script_path = path.join(__dirname, '../src/scripts', filename);
|
||||
const run_path = script_path.replace(os, 'run');
|
||||
process.env['fail_fast'] = await utils.getInput('fail-fast', false);
|
||||
process.env['tool_path_dir'] = await utils.getInput('tools-dir', false);
|
||||
const extension_csv: string = await utils.getInput('extensions', false);
|
||||
const ini_values_csv: string = await utils.getInput('ini-values', false);
|
||||
const coverage_driver: string = await utils.getInput('coverage', false);
|
||||
|
@ -55,6 +55,7 @@ read_env() {
|
||||
fail_fast="${fail_fast:-${FAIL_FAST:-false}}"
|
||||
[[ -z "${ImageOS}" && -z "${ImageVersion}" || -n ${ACT} ]] && _runner=self-hosted || _runner=github
|
||||
runner="${runner:-${RUNNER:-$_runner}}"
|
||||
tool_path_dir="${tools_dir:-${TOOLS_DIR:-/usr/local/bin}}"
|
||||
|
||||
if [[ "$runner" = "github" && $_runner = "self-hosted" ]]; then
|
||||
fail_fast=true
|
||||
@ -75,6 +76,7 @@ read_env() {
|
||||
export runner
|
||||
export update
|
||||
export ts
|
||||
export tools_dir_path
|
||||
}
|
||||
|
||||
# Function to create a lock.
|
||||
|
Loading…
x
Reference in New Issue
Block a user