Skip to content

Commit ebf4366

Browse files
🔧 [CI]: Rename variable for input name in Get-Settings.yml for better clarity
1 parent 7469438 commit ebf4366

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

‎.github/workflows/Get-Settings.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff 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]@{

0 commit comments

Comments
 (0)