mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-25 06:15:56 +01:00
Check template type
This commit is contained in:
parent
fcc32bac34
commit
4ded69c065
@ -8,6 +8,7 @@ import (
|
||||
"strconv"
|
||||
"text/template"
|
||||
|
||||
"github.com/ansible-semaphore/semaphore/db"
|
||||
"github.com/ansible-semaphore/semaphore/pkg/task_logger"
|
||||
"github.com/ansible-semaphore/semaphore/util"
|
||||
"github.com/ansible-semaphore/semaphore/util/mailer"
|
||||
@ -364,7 +365,7 @@ func (t *TaskRunner) alertInfos() (string, string) {
|
||||
|
||||
if t.Task.Version != nil {
|
||||
version = *t.Task.Version
|
||||
} else if t.Task.GetIncomingVersion(t.pool.store) != nil {
|
||||
} else if t.Template.Type != db.TemplateTask {
|
||||
version = "build " + *t.Task.GetIncomingVersion(t.pool.store)
|
||||
} else {
|
||||
version = ""
|
||||
|
Loading…
Reference in New Issue
Block a user