mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-11-27 17:40:03 +07:00
Fix username hardcode in composer PATH
This commit is contained in:
@ -171,7 +171,7 @@ Function Add-Tool() {
|
||||
(Get-Content $php_dir/cs2pr).replace('exit(9)', 'exit(0)') | Set-Content $php_dir/cs2pr
|
||||
} elseif($tool -eq "composer") {
|
||||
composer -q global config process-timeout 0
|
||||
Write-Output "::add-path::C:/Users/runneradmin/AppData/Roaming/Composer/vendor/bin"
|
||||
Write-Output "::add-path::$env:APPDATA\Composer\vendor\bin"
|
||||
if (Test-Path env:COMPOSER_TOKEN) {
|
||||
composer -q global config github-oauth.github.com $env:COMPOSER_TOKEN
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user