0
1
Fork 0

Update main.go

This commit is contained in:
ProKn1fe 2024-02-20 19:45:28 +00:00
parent 326e08ff7c
commit 740c37f3d0
1 changed files with 3 additions and 4 deletions

View File

@ -35,12 +35,11 @@ func main() {
}
insecure, _ := strconv.ParseBool(gha.GetInput("insecure"))
if tagName == "" {
if !strings.HasPrefix(ctx.Ref, "refs/tags/") {
gha.Fatalf("ref %s is not a tag", ctx.Ref)
}
tagName = ctx.RefName
}
// I don't understend what this doing
// if !strings.HasPrefix(tagName, "refs/tags/") {
// gha.Fatalf("ref %s is not a tag", tagName)
// }
client := http.DefaultClient
if insecure {