From 15381257e5e57a6385a1cb68934d4ed27b534630 Mon Sep 17 00:00:00 2001 From: Raymond LaRose Date: Tue, 27 May 2025 11:35:41 -0400 Subject: [PATCH] Exclude "Tests" directory when retrieving module name for publishing --- .gitea/workflows/Publish Module.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/Publish Module.yaml b/.gitea/workflows/Publish Module.yaml index 476cf54..3cea7ea 100644 --- a/.gitea/workflows/Publish Module.yaml +++ b/.gitea/workflows/Publish Module.yaml @@ -72,7 +72,7 @@ jobs: Set-Location -Path ${{ github.workspace }} $moduleVersion = git describe --tags Write-Host "Module version: $moduleVersion" - $module = get-childItem -path . -Directory -Exclude ".*" | Select-Object -ExpandProperty Name + $module = get-childItem -path . -Directory -Exclude (".*", "Tests") | Select-Object -ExpandProperty Name Write-Host "Publishing module $module to Gitea" Publish-Module -Path $module -Repository 'GiteaPublic' -NuGetApiKey "${{ secrets.PACKAGES_TOKEN }}" Write-Host "Module $module published to Gitea"