diff --git a/DevOps/SemVerCalc_GitHubFlow_Actions.ps1 b/DevOps/SemVerCalc_GitHubFlow_Actions.ps1 index d2c7f62..97ec7f6 100644 --- a/DevOps/SemVerCalc_GitHubFlow_Actions.ps1 +++ b/DevOps/SemVerCalc_GitHubFlow_Actions.ps1 @@ -17,7 +17,7 @@ Author: Anton Smolkov - https://github.com/AnSmol #$env:GITHUB_ENV = '~/github.env.lab' #Short circuit for release tags -if ($env:REF_TYPE -eq 'tag' -and $env:REF_TYPE -cmatch "^v\d+\.\d+\.\d+$" ){ +if ($env:REF_TYPE -eq 'tag' -and $env:REF_TYPE -cmatch '^v(?\d+)\.?(?\d+)?\.?(?\d+)?$' ){ "CALCULATED_VERSION=$env:REF_NAME" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append "CALCULATED_VERSION_IS_RELEASE=$True" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append @@ -89,4 +89,4 @@ if ($null -ne $VersionFromTag) { "CALCULATED_VERSION_IS_RELEASE=$CalculatedVersionIsRelease" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append Write-Host $CalculatedVersion -#cat $env:GITHUB_ENV \ No newline at end of file +#cat $env:GITHUB_ENV