File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 44
55use colored:: Colorize ;
66use serde:: { Deserialize , Serialize } ;
7+ use std:: collections:: BTreeSet ;
78use std:: fs;
89use std:: io:: Write ;
910use std:: path:: PathBuf ;
@@ -87,8 +88,15 @@ pub fn generate_single_pipeline_config(
8788 let config_filepath = DEPL_CONFIG_FILE . replace ( "{pipeline-name}" , pipeline. title . as_str ( ) ) ;
8889 log ( format ! ( "Prev config on {config_filepath:?}" ) ) ;
8990
91+ let actions = pipeline
92+ . actions
93+ . iter ( )
94+ . map ( |used| used. definition ( & config. actions ) . unwrap ( ) . clone ( ) )
95+ . collect :: < BTreeSet < _ > > ( ) ;
96+
9097 let minimal_project_config = DeployerProjectOptions {
9198 pipelines : vec ! [ pipeline] ,
99+ actions,
92100 project_name : config. project_name . to_owned ( ) ,
93101 cache_files : Default :: default ( ) ,
94102 ignore_files : Default :: default ( ) ,
You can’t perform that action at this time.
0 commit comments