Skip to content

Commit 7469438

Browse files
🔧 [CI]: Refactor Name assignment logic in Get-Settings.yml for improved clarity
1 parent 496a8b0 commit 7469438

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎.github/workflows/Get-Settings.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
}
126126
127127
$settings = [pscustomobject]@{
128-
Name = ($name ?? $settings.Name) ?? $env:GITHUB_REPOSITORY_NAME
128+
Name = [string]::IsNullOrEmpty($name) ? $name : [string]::IsNullOrEmpty($settings.Name) ? $settings.Name : $env:GITHUB_REPOSITORY_NAME
129129
Test = [pscustomobject]@{
130130
Skip = $settings.Test.Skip ?? $false
131131
Linux = [pscustomobject]@{
@@ -261,7 +261,6 @@ jobs:
261261
LogGroup 'Module Local Test Suites:' {
262262
$moduleTestSuites = if ($settings.Test.Module.Skip) {
263263
Write-Host 'Skipping all module tests.'
264-
Set-GitHubOutput -Name ModuleTestSuites -Value '[]'
265264
} else {
266265
# Locate the tests directory.
267266
$testsPath = Resolve-Path 'tests' -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Path

0 commit comments

Comments
 (0)