@@ -68,16 +68,16 @@ pub enum WorkflowTargetLookup {
68
68
template : String ,
69
69
} ,
70
70
Step {
71
- template : String ,
71
+ template : Option < String > ,
72
72
step : String ,
73
73
} ,
74
74
}
75
75
76
76
impl WorkflowTargetLookup {
77
77
fn template ( & self ) -> Option < & str > {
78
78
match self {
79
- WorkflowTargetLookup :: Template { template }
80
- | WorkflowTargetLookup :: Step { template, .. } => Some ( & template) ,
79
+ WorkflowTargetLookup :: Template { template } => Some ( & template ) ,
80
+ WorkflowTargetLookup :: Step { template, .. } => template. as_deref ( ) ,
81
81
WorkflowTargetLookup :: Entrypoint => None ,
82
82
}
83
83
}
@@ -345,10 +345,9 @@ impl ResolvedTarget<false> {
345
345
. await
346
346
. map ( |resource| {
347
347
let lookup = match ( target. step . clone ( ) , target. template . clone ( ) ) {
348
- ( Some ( step) , Some ( template) ) => {
349
- WorkflowTargetLookup :: Step { step, template }
350
- }
351
- _ => todo ! ( ) ,
348
+ ( None , None ) => WorkflowTargetLookup :: Entrypoint ,
349
+ ( None , Some ( template) ) => WorkflowTargetLookup :: Template { template } ,
350
+ ( Some ( step) , template) => WorkflowTargetLookup :: Step { step, template } ,
352
351
} ;
353
352
354
353
ResolvedTarget :: Workflow (
0 commit comments