We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32d3e81 commit 6ce6476Copy full SHA for 6ce6476
1 file changed
src/main.ps1
@@ -38,6 +38,10 @@ if ([string]::IsNullOrWhiteSpace($moduleVersion)) {
38
throw 'Version is required. Please provide a module version.'
39
}
40
41
+if ($moduleVersion -notmatch '^\d+\.\d+\.\d+$') {
42
+ throw "Version '$moduleVersion' is not a valid version. Expected format: 'Major.Minor.Patch' (e.g., '1.2.3')."
43
+}
44
+
45
Set-GitHubLogGroup 'Build local scripts' {
46
Write-Host 'Execution order:'
47
$scripts = Get-ChildItem -Filter '*build.ps1' -Recurse | Sort-Object -Property Name | Resolve-Path -Relative
0 commit comments