From 2de37dcc9c13f04a669ee04dfc84eb4c1c359953 Mon Sep 17 00:00:00 2001 From: Mike Madeja Date: Sun, 15 Jun 2025 22:56:03 -0500 Subject: [PATCH] debugging --- .github/workflows/CreateRelease.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index 1249c28..d29db44 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -50,6 +50,11 @@ jobs: - name: Zip folder run: | + $modulePath = "PiHoleShell" # Change to your actual module folder + $manifest = Get-ChildItem -Path $modulePath -Filter PiHoleShell.psd1 -Recurse | Select-Object -First 1 + (Get-Content $($manifest.fullname)) -replace '0.0.0', ($ENV:TAG -replace "v", "") | Out-File $manifest.fullname + Write-Host "Replacing 0.0.0 with $ENV:NEW_TAG" + mkdir -p output ls zip -r output/release.zip PiHoleShell @@ -69,8 +74,6 @@ jobs: $apiKey = '${{ secrets.POWERSHELLGALLERY }}' $modulePath = "PiHoleShell" # Change to your actual module folder $manifest = Get-ChildItem -Path $modulePath -Filter PiHoleShell.psd1 -Recurse | Select-Object -First 1 - (Get-Content $($manifest.fullname)) -replace '0.0.0', ($ENV:TAG -replace "v", "") | Out-File $manifest.fullname - Write-Host "Replacing 0.0.0 with $ENV:NEW_TAG" if (-not $manifest) { throw "No module manifest (*.psd1) found in $modulePath"