From 60f0dec2a54a7f1984b3b36cd3fc860150793c9e Mon Sep 17 00:00:00 2001 From: deadlydog Date: Sat, 16 Mar 2024 17:25:43 -0600 Subject: [PATCH] ci: Fix prerelease version format --- .github/workflows/build-and-test-powershell-module.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-powershell-module.yml b/.github/workflows/build-and-test-powershell-module.yml index b69807a..906ce5b 100644 --- a/.github/workflows/build-and-test-powershell-module.yml +++ b/.github/workflows/build-and-test-powershell-module.yml @@ -86,7 +86,7 @@ jobs: # The preReleaseTag is empty when building the default branch, so manually create a prerelease version number if needed. if ([string]::IsNullOrWhiteSpace($prereleaseLabel)) { [string] $dateTime = (Get-Date -Format 'yyyyMMddTHHmmss') - $prereleaseLabel = $dateTime + 'SHA' + '${{ steps.git-version.outputs.shortSha }}' + $prereleaseLabel = 'CI' + $dateTime + 'SHA' + '${{ steps.git-version.outputs.shortSha }}' } # PowerShell prerelease labels can only contain the characters 'a-zA-Z0-9', so sanitize it if needed. $newVersionNumberPrereleaseLabel = $prereleaseLabel -replace '[^a-zA-Z0-9]', ''