|
|
|
@ -35,12 +35,11 @@ func main() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
insecure, _ := strconv.ParseBool(gha.GetInput("insecure"))
|
|
|
|
insecure, _ := strconv.ParseBool(gha.GetInput("insecure"))
|
|
|
|
if tagName == "" {
|
|
|
|
if tagName == "" {
|
|
|
|
|
|
|
|
if !strings.HasPrefix(ctx.Ref, "refs/tags/") {
|
|
|
|
|
|
|
|
gha.Fatalf("ref %s is not a tag", ctx.Ref)
|
|
|
|
|
|
|
|
}
|
|
|
|
tagName = ctx.RefName
|
|
|
|
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
|
|
|
|
client := http.DefaultClient
|
|
|
|
if insecure {
|
|
|
|
if insecure {
|
|
|
|
|