Compare commits

..

2 Commits

Author SHA1 Message Date
Ruslan Popov
9f02fee5b5 [skip ci] Bump version: 0.1.1 → 0.1.2 2025-04-04 01:17:44 +03:00
c11139e078 Right tag message 2025-04-04 01:17:34 +03:00
2 changed files with 3 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -69,6 +69,8 @@ func gitTag(bc *BumpConfig, newVersion string) {
log.Printf("Current HEAD is %s\n", headRef.Hash())
// Создаем тег на текущем коммите (HEAD)
commitMsg := strings.ReplaceAll(bc.Message, "{current_version}", bc.CurrentVersion)
commitMsg = strings.ReplaceAll(commitMsg, "{new_version}", newVersion)
tagName := strings.ReplaceAll(bc.TagName, "{new_version}", newVersion)
_, err = repo.CreateTag(tagName, headRef.Hash(), &git.CreateTagOptions{
Tagger: &object.Signature{
@@ -76,7 +78,7 @@ func gitTag(bc *BumpConfig, newVersion string) {
Email: os.Getenv("GIT_EMAIL"),
When: time.Now(),
},
Message: "Tag is created with go-git",
Message: commitMsg,
})
if err != nil {
log.Fatalf("Tag creation error: %v", err)