File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ jobs:
8585 Script : |
8686 'powershell-yaml' | Install-PSResource -Repository PSGallery -TrustRepository -Reinstall
8787
88- $name = $env:PSMODULE_GET_SETTINGS_INPUT_Name
88+ $inputName = $env:PSMODULE_GET_SETTINGS_INPUT_Name
8989 $settingsPath = $env:PSMODULE_GET_SETTINGS_INPUT_SettingsPath
9090 LogGroup "Inputs" {
9191 [pscustomobject]@{
9292 PWD = (Get-Location).Path
93- Name = $name
93+ Name = $inputName
9494 SettingsPath = $settingsPath
9595 } | Format-List | Out-String
9696 }
@@ -124,8 +124,18 @@ jobs:
124124 $settings = @{}
125125 }
126126
127+ LogGroup "Name" {
128+ [pscustomobject]@{
129+ InputName = $inputName
130+ SettingsName = $settings.Name
131+ RepositoryName = $env:GITHUB_REPOSITORY_NAME
132+ } | Format-List | Out-String
133+
134+ $name = ![string]::IsNullOrEmpty($inputName) ? $name : [string]::IsNullOrEmpty($settings.Name) ? $settings.Name : $env:GITHUB_REPOSITORY_NAME
135+ }
136+
127137 $settings = [pscustomobject]@{
128- Name = [string]::IsNullOrEmpty( $name) ? $name : [string]::IsNullOrEmpty($settings.Name) ? $settings.Name : $env:GITHUB_REPOSITORY_NAME
138+ Name = $name
129139 Test = [pscustomobject]@{
130140 Skip = $settings.Test.Skip ?? $false
131141 Linux = [pscustomobject]@{
You can’t perform that action at this time.
0 commit comments