Skip to content

Commit 1ad4092

Browse files
committed
🧼 Clean up object for summary data
1 parent 4f6bafb commit 1ad4092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/PublishPSModuleToGallery.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
Verbose = $true
6363
}
6464
Publish-PSResource @hshParamForPublishPSResource
65-
Add-Content -Path $env:GITHUB_OUTPUT -Encoding utf8 -Value "strModuleInfo_JSON=$($oPSModuleInfo | Select-Object -ExcludeProperty Exported* | Convertto-Json -Depth 5 -Compress)"
65+
Add-Content -Path $env:GITHUB_OUTPUT -Encoding utf8 -Value "strModuleInfo_JSON=$($oPSModuleInfo | Select-Object -Property Name, Description, Author, @{n="VersionString"; e={$_.Version.ToString()}} | Convertto-Json -Compress)"
6666
}
6767
## throw the error if any, so future steps know outcome
6868
catch {throw $_}
@@ -89,4 +89,4 @@ jobs:
8989
Description | {2}
9090
Author | {3}
9191
Publishing Result | {4}
92-
'@ -f $oPSModuleInfo_fromJson.Name, $oPSModuleInfo_fromJson.Version.ToString(), $oPSModuleInfo_fromJson.Description, $oPSModuleInfo_fromJson.Author, $strResultOfPublish)
92+
'@ -f $oPSModuleInfo_fromJson.Name, $oPSModuleInfo_fromJson.VersionString, $oPSModuleInfo_fromJson.Description, $oPSModuleInfo_fromJson.Author, $strResultOfPublish)

0 commit comments

Comments
 (0)