@@ -1040,8 +1040,8 @@ func (a *Actions) schemaApplyWithApproval(ctx context.Context) ([]*atlasexec.Sch
1040
1040
if err := a .waitingForApproval (func () (bool , error ) {
1041
1041
plans , err := a .Atlas .SchemaPlanList (ctx , a .schemaPlanListParams (
1042
1042
func (p * atlasexec.SchemaPlanListParams ) {
1043
- p .From = [] string { a . GetInput ("url" )}
1044
- p .To = [] string { a . GetInput ("to" )}
1043
+ p .From = a . GetArrayInput ("url" )
1044
+ p .To = a . GetArrayInput ("to" )
1045
1045
p .Repo = repo
1046
1046
},
1047
1047
))
@@ -1051,7 +1051,7 @@ func (a *Actions) schemaApplyWithApproval(ctx context.Context) ([]*atlasexec.Sch
1051
1051
// Check the created plan is exists and approved.
1052
1052
var cloudPlan * atlasexec.SchemaPlanFile
1053
1053
for _ , plan := range plans {
1054
- if plan .Name == f .Name {
1054
+ if plan .URL == f .URL {
1055
1055
cloudPlan = & plan
1056
1056
break
1057
1057
}
@@ -1092,8 +1092,8 @@ You can approve the plan by visiting: %s`, f.Name, f.Link)
1092
1092
}
1093
1093
plan , err := a .Atlas .SchemaPlan (ctx , a .schemaPlanParams (
1094
1094
func (p * atlasexec.SchemaPlanParams ) {
1095
- p .From = [] string { a . GetInput ("url" )}
1096
- p .To = [] string { a . GetInput ("to" )}
1095
+ p .From = a . GetArrayInput ("url" )
1096
+ p .To = a . GetArrayInput ("to" )
1097
1097
p .Repo = repo
1098
1098
p .Name = name
1099
1099
p .Pending = true
@@ -1113,8 +1113,8 @@ You can approve the plan by visiting: %s`, f.Name, f.Link)
1113
1113
policy := a .GetInput ("approval-policy" )
1114
1114
switch plans , err := a .Atlas .SchemaPlanList (ctx , a .schemaPlanListParams (
1115
1115
func (p * atlasexec.SchemaPlanListParams ) {
1116
- p .From = [] string { a . GetInput ("url" )}
1117
- p .To = [] string { a . GetInput ("to" )}
1116
+ p .From = a . GetArrayInput ("url" )
1117
+ p .To = a . GetArrayInput ("to" )
1118
1118
p .Repo = repo
1119
1119
},
1120
1120
)); {
0 commit comments