Skip to content

Commit 358891f

Browse files
committed
🐛 Fix another syntax issue, add other step summary info
1 parent 3da8286 commit 358891f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/PublishPSModuleToGallery.yaml

Lines changed: 7 additions & 5 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_OUTPUTS -Encoding utf8 -Value "strModuleInfo_JSON=$($oPSModuleInfo | Convertto-Json -Depth 5 -Compress)"
65+
Add-Content -Path $env:GITHUB_OUTPUT -Encoding utf8 -Value "strModuleInfo_JSON=$($oPSModuleInfo | Select-Object -ExcludeProperty Exported* | Convertto-Json -Depth 5 -Compress)"
6666
}
6767
## throw the error if any, so future steps know outcome
6868
catch {throw $_}
@@ -77,12 +77,14 @@ jobs:
7777
"cancelled" {"❌ Canceled"}
7878
"skipped" {"🦘 Skipped"}
7979
}
80-
$oPSModuleInfo_fromPublishStep = ${{ fromJson(steps.publish_ps_module.outputs.strModuleInfo_JSON) }}
80+
$oPSModuleInfo_fromJson = '${{ steps.publish_ps_module.outputs.strModuleInfo_JSON }}' | ConvertFrom-Json
8181
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Value @"
8282
# Publish Summary
8383
| What | Value |
8484
|------|-------|
85-
Module | $($oPSModuleInfo_fromPublishStep.Name)
86-
Version | $($oPSModuleInfo_fromPublishStep.Version)
87-
Result | $strResultOfPublish
85+
Module Name | `$($oPSModuleInfo_fromJson.Name)`
86+
Version | `$($oPSModuleInfo_fromJson.Version)`
87+
Description | $($oPSModuleInfo_fromJson.Description)
88+
Author | $($oPSModuleInfo_fromJson.Author)
89+
Publishing Result | $strResultOfPublish
8890
"@

0 commit comments

Comments
 (0)