diff --git a/update.rb b/update.rb index 4e55e9fc..3187c9f4 100644 --- a/update.rb +++ b/update.rb @@ -17,7 +17,7 @@ OPTIONAL_PRODUCT = ARGV[3] # This is more lenient from semver, but disallows MAJOR=0 as well # It also allows MAJOR.MINOR, which is quite common DEFAULT_VERSION_REGEX = '^v?(?[1-9]\d*)\.(?0|[1-9]\d*)\.?(?0|[1-9]\d*)?$' -DEFAULT_TAG_TEMPLATE = '{{major}}.{{minor}}{% if patch %}.{{patch}}{%endif%}' +DEFAULT_TAG_TEMPLATE = "{{major}}{% if minor %}.{{minor}}{% if patch %}.{{patch}}{%endif%}{%endif%}" def fetch_git_releases(repo_dir, config) pwd = Dir.pwd