mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 21:33:06 +07:00
Use releases instead of tags to download PowerShell PhpManager
I just started to publish PhpManager to GitHub Releases too
This commit is contained in:
parent
f641885a8d
commit
48a00b4d3f
@ -76,7 +76,7 @@ Function Get-CleanPSProfile {
|
|||||||
# Function to install PhpManager.
|
# Function to install PhpManager.
|
||||||
Function Install-PhpManager() {
|
Function Install-PhpManager() {
|
||||||
$repo = "mlocati/powershell-phpmanager"
|
$repo = "mlocati/powershell-phpmanager"
|
||||||
$tag = (Invoke-RestMethod https://api.github.com/repos/$repo/tags)[0].Name
|
$tag = (Invoke-RestMethod https://api.github.com/repos/$repo/releases/latest).tag_name
|
||||||
$module_path = "$bin_dir\PhpManager\powershell-phpmanager-$tag\PhpManager\PhpManager.psm1"
|
$module_path = "$bin_dir\PhpManager\powershell-phpmanager-$tag\PhpManager\PhpManager.psm1"
|
||||||
if(-not (Test-Path $module_path -PathType Leaf)) {
|
if(-not (Test-Path $module_path -PathType Leaf)) {
|
||||||
$zip_file = "$bin_dir\PhpManager.zip"
|
$zip_file = "$bin_dir\PhpManager.zip"
|
||||||
|
Loading…
Reference in New Issue
Block a user