Skip to content

Commit 310e481

Browse files
Sn0wCrackshivammathur
authored andcommitted
feat: allow tools path directory to be set
also add a .node-version file
1 parent 42a9487 commit 310e481

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ inputs:
2727
tools:
2828
description: 'Setup popular tools globally.'
2929
required: false
30+
tools-dir:
31+
description: 'Directory where all tools will be installed to.'
32+
defaut: '/usr/local/bin'
33+
required: false
3034
outputs:
3135
php-version:
3236
description: 'PHP version in semver format'

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/install.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export async function getScript(os: string): Promise<string> {
1919
const script_path = path.join(__dirname, '../src/scripts', filename);
2020
const run_path = script_path.replace(os, 'run');
2121
process.env['fail_fast'] = await utils.getInput('fail-fast', false);
22+
process.env['tool_path_dir'] = await utils.getInput('tools-dir', false);
2223
const extension_csv: string = await utils.getInput('extensions', false);
2324
const ini_values_csv: string = await utils.getInput('ini-values', false);
2425
const coverage_driver: string = await utils.getInput('coverage', false);

src/scripts/tools/add_tools.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Variables
2-
export tool_path_dir="/usr/local/bin"
32
export composer_home="$HOME/.composer"
43
export composer_bin="$composer_home/vendor/bin"
54
export composer_json="$composer_home/composer.json"

0 commit comments

Comments
 (0)