Update build.yml
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -117,7 +117,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
Import-Module WebAdministration
|
Import-Module WebAdministration
|
||||||
$appPoolName = "${{ vars.IIS_APP_POOL_NAME }}" -or "HomeApi"
|
$appPoolName = "${{ vars.IIS_APP_POOL_NAME }}" -or "HomeApi"
|
||||||
Write-Host "Restarting application pool: $appPoolName"
|
Write-Host "Restarting application pool: $appPoolName :)"
|
||||||
|
|
||||||
# Check if app pool exists
|
# Check if app pool exists
|
||||||
if (Test-Path "IIS:\AppPools\$appPoolName") {
|
if (Test-Path "IIS:\AppPools\$appPoolName") {
|
||||||
|
|||||||
Reference in New Issue
Block a user