fix HasPrefix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1d03de9de1
commit
20ac68ba45
|
@ -65,6 +65,10 @@ func (p *plugin) Find(ctx context.Context, req *config.Request) (*drone.Config,
|
|||
}
|
||||
|
||||
retData := destinationApi + "\n\n" + destinationService
|
||||
n := strings.LastIndex(retData, "---")
|
||||
if n > 0 {
|
||||
retData = retData[:n]
|
||||
}
|
||||
logrus.Info(retData)
|
||||
// 5. 组装所有ci信息并输出
|
||||
return &drone.Config{
|
||||
|
|
Loading…
Reference in New Issue