fix 0.8 deploy event conversion

This commit is contained in:
Brad Rydzewski 2020-03-26 12:25:14 -07:00
parent 4706608ba0
commit 6f4d6dfb39

View File

@ -305,16 +305,16 @@ func toConditions(from Constraints) droneyaml.Conditions {
Exclude: from.Environment.Exclude, Exclude: from.Environment.Exclude,
}, },
Event: droneyaml.Condition{ Event: droneyaml.Condition{
Include: from.Event.Include, Include: toPromote(from.Event.Include),
Exclude: from.Event.Exclude, Exclude: toPromote(from.Event.Exclude),
}, },
Branch: droneyaml.Condition{ Branch: droneyaml.Condition{
Include: from.Branch.Include, Include: from.Branch.Include,
Exclude: from.Branch.Exclude, Exclude: from.Branch.Exclude,
}, },
Status: droneyaml.Condition{ Status: droneyaml.Condition{
Include: toPromote(from.Status.Include), Include: from.Status.Include,
Exclude: toPromote(from.Status.Exclude), Exclude: from.Status.Exclude,
}, },
Matrix: from.Matrix, Matrix: from.Matrix,
} }