Skip to content

Commit

Permalink
update regex patterns for version matching
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 18, 2024
1 parent da1698d commit 98b28c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/winbuildscripts/Generate-Chocolatey-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ if (![string]::IsNullOrEmpty($VersionOverride)) {
}
$copyright = "Datadog {0}" -f (Get-Date).Year

$releasePattern = "(\d+\.\d+\.\d+)$"
$releaseCandidatePattern = "(\d+\.\d+\.\d+)-rc\.(\d+)"
$develPattern = "(\d+\.\d+\.\d+)-devel\.git\.\d+\.(.+)"
$releasePattern = "^(\d+\.\d+\.\d+)$"
$releaseCandidatePattern = "^(\d+\.\d+\.\d+)-rc\.(\d+)$"
$develPattern = "^(\d+\.\d+\.\d+)-devel\.git\.\d+\.(.+)"

# Build the package in a temporary directory
# Some of the build steps modify the package source, so we don't want to do this in the source directory
Expand Down

0 comments on commit 98b28c2

Please sign in to comment.