From e40bfb7479aed3353330a5aa3921a74e30a8d66c Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Wed, 10 Dec 2025 16:11:01 -0600 Subject: [PATCH] updates to actions --- maintenance/release.ps1 | 9 +++++++++ maintenance/updateMod.ps1 | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/maintenance/release.ps1 b/maintenance/release.ps1 index 5264fef..71a9e21 100644 --- a/maintenance/release.ps1 +++ b/maintenance/release.ps1 @@ -38,6 +38,15 @@ Get-ChildItem $mypath/$myMod/Public/ | ForEach-Object { } } +Get-ChildItem $mypath/$myMod/Private/ | ForEach-Object { + Get-ChildItem $_ | ForEach-Object { + if (!(Test-Path -Path "$mypath/docs/function-documentation/private/" -PathType Container)) { + New-Item -Path "$mypath/docs/function-documentation/private/" -ItemType Directory -Force + } + Move-Item -Path "$mypath/docs/function-documentation/$($_.BaseName).md" -Destination "$mypath/docs/function-documentation/private/" -Force + } +} + $manifest = Import-PowerShellDataFile "$mypath/$myMod/$myMod.psd1" [version]$version = $Manifest.ModuleVersion switch ($Args[0]) { diff --git a/maintenance/updateMod.ps1 b/maintenance/updateMod.ps1 index 5264fef..71a9e21 100644 --- a/maintenance/updateMod.ps1 +++ b/maintenance/updateMod.ps1 @@ -38,6 +38,15 @@ Get-ChildItem $mypath/$myMod/Public/ | ForEach-Object { } } +Get-ChildItem $mypath/$myMod/Private/ | ForEach-Object { + Get-ChildItem $_ | ForEach-Object { + if (!(Test-Path -Path "$mypath/docs/function-documentation/private/" -PathType Container)) { + New-Item -Path "$mypath/docs/function-documentation/private/" -ItemType Directory -Force + } + Move-Item -Path "$mypath/docs/function-documentation/$($_.BaseName).md" -Destination "$mypath/docs/function-documentation/private/" -Force + } +} + $manifest = Import-PowerShellDataFile "$mypath/$myMod/$myMod.psd1" [version]$version = $Manifest.ModuleVersion switch ($Args[0]) {