Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanSebranek committed May 2, 2024
1 parent 4cf9193 commit 009e4aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions Tasks/Manage-AutomationWebHook/Manage-AutomationWebHook.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,23 @@ foreach($def in $definitions)
continue
}
Write-Host "Settings file found: $settingsFile"
$setting = get-content $settingsFile -Encoding utf8 | ConvertFrom-Json
$setting = get-content $settingsFile | ConvertFrom-Json
#$setting = get-content $settingsFile -Encoding utf8 | ConvertFrom-Json

# roman check code:
Write-Host "vypis settings: "
$setting

Write-Host "vypis def.settings: "
$def.Settings

Write-Host "vypis settings.parameters: "
$setting.Parameters

foreach($prop in $setting.parameters.psobject.properties) {
$params[$prop.name] = $prop.value
}

Write-Host "get setting value as PS object: "
$setting

if((-not [string]::IsNullOrEmpty($setting.RunOn) -and ($setting.RunOn -ne 'Azure'))) {$runOn = $setting.RunOn}
if(-not [string]::IsNullOrEmpty($setting.Parameters)) {$params = $setting.Parameters}
}
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "Manage-AutomationAccount",
"name": "Manage-AutomationAccount",
"version": "1.9.74",
"version": "1.9.75",
"publisher": "GreyCorbelSolutions",
"targets": [
{
Expand Down

0 comments on commit 009e4aa

Please sign in to comment.