Skip to content

Commit 3da8286

Browse files
committed
🐛 Fix syntax issue in GHAction, correct project URL in module
1 parent f1dad12 commit 3da8286

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/PublishPSModuleToGallery.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
Get-ChildItem -Path . -Recurse -Filter *.psd1 | ForEach-Object {
5454
Write-Verbose -Verbose "Found module manifest: '$($_.FullName)'"
5555
try {
56-
Test-ModuleManifest -Path $_.FullName -ErrorAction:Stop
56+
Test-ModuleManifest -Path $_.FullName -ErrorAction:Stop -OutVariable oPSModuleInfo
5757
$hshParamForPublishPSResource = @{
5858
ApiKey = '${{ secrets.PSGALLERY_APIKEY }}'
5959
Repository = '${{ vars.PSGALLERY_DISPLAYNAME }}'
@@ -62,6 +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)"
6566
}
6667
## throw the error if any, so future steps know outcome
6768
catch {throw $_}
@@ -76,11 +77,12 @@ jobs:
7677
"cancelled" {"❌ Canceled"}
7778
"skipped" {"🦘 Skipped"}
7879
}
79-
Add-Content -Path $GITHUB_STEP_SUMMARY -Encoding utf8 -Value @"
80+
$oPSModuleInfo_fromPublishStep = ${{ fromJson(steps.publish_ps_module.outputs.strModuleInfo_JSON) }}
81+
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Value @"
8082
# Publish Summary
8183
| What | Value |
8284
|------|-------|
83-
Module | ${{ steps.get-module-version.outputs.module-name }}
84-
Version | ${{ steps.get-module-version.outputs.module-version }}
85+
Module | $($oPSModuleInfo_fromPublishStep.Name)
86+
Version | $($oPSModuleInfo_fromPublishStep.Version)
8587
Result | $strResultOfPublish
8688
"@

Update-ThisModuleManifest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ begin {
3030
# NestedModules = Write-Output "${strModuleName}_functions.psm1"
3131
# PassThru = $true
3232
PowerShellVersion = [System.Version]"7.0"
33-
ProjectUri = "https://github.com/vNugglets/something"
33+
ProjectUri = "https://github.com/vNugglets/vNPSMod_AWSSSO"
3434
ReleaseNotes = "See release notes / ReadMe at the project URI"
3535
RootModule = "${strModuleName}_functions.psm1"
3636
# RequiredModules = "Some.Other.Module"

vN.AWSSSO/vN.AWSSSO.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Matt Boren, vNugglets
55
#
6-
# Generated on: 9/18/2025
6+
# Generated on: 10/2/2025
77
#
88

99
@{
@@ -104,7 +104,7 @@ PrivateData = @{
104104
# LicenseUri = ''
105105

106106
# A URL to the main website for this project.
107-
ProjectUri = 'https://github.com/vNugglets/something'
107+
ProjectUri = 'https://github.com/vNugglets/vNPSMod_AWSSSO'
108108

109109
# A URL to an icon representing this module.
110110
# IconUri = ''

0 commit comments

Comments
 (0)