From 838c97b417d94803d6017933fc48adeab3be7b43 Mon Sep 17 00:00:00 2001 From: WintBit Date: Sat, 13 Apr 2024 23:16:47 +0800 Subject: [PATCH] fix: teamcity tagging --- output/teamcity.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/output/teamcity.go b/output/teamcity.go index 2891d94..d6bb21f 100644 --- a/output/teamcity.go +++ b/output/teamcity.go @@ -30,6 +30,7 @@ func (o *TeamcityOutput) Output(result *types.Result, _ *types.SemanticOptions) teamCityParam("semantic.release.next.major", fmt.Sprintf("%d", result.NextRelease.Major)) teamCityParam("semantic.release.next.minor", fmt.Sprintf("%d", result.NextRelease.Minor)) teamCityParam("semantic.release.next.patch", fmt.Sprintf("%d", result.NextRelease.Patch)) + teamCityParam("semantic.release.next.tag", result.NextRelease.Tag()) if result.LatestRelease.Reference != nil { teamCityParam("semantic.release.latest.version", result.LatestRelease.Version.ShortString()) teamCityParam("semantic.release.latest.hash", utils.HashShort(result.LatestRelease.Hash())) @@ -51,5 +52,5 @@ func teamCityParam(key, value string) { } func teamCityTag(tag string) { - fmt.Printf("##teamcity[addBuildTag name='%s']\n", tag) + fmt.Printf("##teamcity[addBuildTag '%s']\n", tag) }