fix: tag check output

This commit is contained in:
zzjc1234 2024-08-20 14:23:48 +08:00 committed by Boming Zhang
parent 2838f4171f
commit 9e4a2c4e29
GPG Key ID: D47306D7062CDA9D
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 54fe3e3a386a656664372fd95b527fe1f957dcc8 Subproject commit a236c7ea934de5e59525fa27e4211f4a48dbbf93

@ -1 +1 @@
Subproject commit 2073d687142470aed2dcabb5bb0e016301a4140d Subproject commit a49a6aa29d3dcb0509e8de540db0781aca596f26

View File

@ -2,6 +2,7 @@ package healthcheck
import ( import (
"fmt" "fmt"
"strings"
"github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing"
@ -55,7 +56,7 @@ func CheckTags(repoPath string, category string, n int) error {
} }
} }
if !found { if !found {
return fmt.Errorf("Expected tag '%s' not found.", target) return fmt.Errorf("Wrong release tag '%s' or missing release tags. Please use one of '%s'.", target, strings.Join(tags, "', '"))
} }
return nil return nil
} }