mirror of
https://github.com/thegeeklab/wp-gitea-release.git
synced 2024-11-28 08:20:34 +00:00
Merge pull request #28 from pheelee/master
use tag as title if not user provided fixes #26
This commit is contained in:
commit
2087ad8457
@ -137,6 +137,12 @@ func (p Plugin) Exec() error {
|
|||||||
Note: p.Config.Note,
|
Note: p.Config.Note,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if the title was not provided via .drone.yml we use the tag instead
|
||||||
|
// fixes https://github.com/drone-plugins/drone-gitea-release/issues/26
|
||||||
|
if rc.Title == "" {
|
||||||
|
rc.Title = rc.Tag
|
||||||
|
}
|
||||||
|
|
||||||
release, err := rc.buildRelease()
|
release, err := rc.buildRelease()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user