fix HasPrefix
continuous-integration/drone/push Build is passing Details

master
icechen 2021-12-29 21:22:42 +08:00
parent 1d03de9de1
commit 20ac68ba45
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ func (p *plugin) Find(ctx context.Context, req *config.Request) (*drone.Config,
} }
retData := destinationApi + "\n\n" + destinationService retData := destinationApi + "\n\n" + destinationService
n := strings.LastIndex(retData, "---")
if n > 0 {
retData = retData[:n]
}
logrus.Info(retData) logrus.Info(retData)
// 5. 组装所有ci信息并输出 // 5. 组装所有ci信息并输出
return &drone.Config{ return &drone.Config{