Make latest release always draft
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
e2e8f54ab4
commit
0689dc6bb6
@ -130,12 +130,17 @@ func (p Plugin) Exec() error {
|
||||
tag = strings.TrimPrefix(p.Commit.Ref, "refs/tags/")
|
||||
}
|
||||
|
||||
draft := p.Config.Draft
|
||||
if p.Build.Event != "tag" {
|
||||
draft = true
|
||||
}
|
||||
|
||||
rc := releaseClient{
|
||||
Client: client,
|
||||
Owner: p.Repo.Owner,
|
||||
Repo: p.Repo.Name,
|
||||
Tag: tag,
|
||||
Draft: p.Config.Draft,
|
||||
Draft: draft,
|
||||
Prerelease: p.Config.PreRelease,
|
||||
FileExists: p.Config.FileExists,
|
||||
Title: p.Config.Title,
|
||||
|
Loading…
Reference in New Issue
Block a user