INNER CODE UNIT · Go

main

whalebrew/whalebrew · actions/release/main.go:139

func main() {
	// Create or update release
	tag, ok := core.GetInput("tag_name")
	if !ok && gha.Context.Payload.PushEvent != nil && gha.Context.Payload.PushEvent.Ref != nil {
		if strings.HasPrefix(*gha.Context.Payload.Ref, "refs/tags/") {
			tag = *gha.Context.Payload.Ref
		}
	}
	tag = strings.TrimPrefix(tag, "refs/tags/")

	targetCommitish, ok := core.GetInput("target_commitish")
	if !ok {
		targetCommitish = "master"
	}
	isDraft, ok := core.GetInput("draft")
	if !ok {
		isDraft = "true"
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…