@@ -497,7 +497,7 @@ def create_var(var):
497497 if not args .dry_run_gitlab :
498498
499499 # CI Variables
500- if "variables" in group_dict :
500+ if "variables" in group_dict or "variables_from_files" in group_dict :
501501
502502 logger .info ("Found group yaml definition for vars: {variables}" .format (variables = group_dict ["variables" ]))
503503
@@ -533,7 +533,7 @@ def create_var(var):
533533 if not args .dry_run_gitlab :
534534
535535 # CI Variables
536- if "variables" in project_dict and not ("jobs_enabled" in project_dict and project_dict ["jobs_enabled" ] is False ):
536+ if ( "variables" in project_dict or "variables_from_files" in project_dict ) and not ("jobs_enabled" in project_dict and project_dict ["jobs_enabled" ] is False ):
537537
538538 logger .info ("Found project yaml definition for vars: {variables}" .format (variables = project_dict ["variables" ]))
539539
@@ -637,7 +637,7 @@ def create_var(var):
637637 group .unshare (group_id )
638638 group .share (group_id , member ["access_level" ])
639639 # CI Variables
640- if "variables" in group_dict :
640+ if "variables" in group_dict or "variables_from_files" in group_dict :
641641
642642 # Check variables_clean_all_before_set
643643 if args .variables_clean_all_before_set or ("variables_clean_all_before_set" in group_dict and group_dict ["variables_clean_all_before_set" ]):
@@ -1154,7 +1154,7 @@ def create_var(var):
11541154 logger .info (process .stderr )
11551155
11561156 # CI Variables
1157- if "variables" in project_dict and not ("jobs_enabled" in project_dict and project_dict ["jobs_enabled" ] is False ):
1157+ if ( "variables" in project_dict or "variables_from_files" in project_dict ) and not ("jobs_enabled" in project_dict and project_dict ["jobs_enabled" ] is False ):
11581158
11591159 # Check variables_clean_all_before_set
11601160 if args .variables_clean_all_before_set or ("variables_clean_all_before_set" in project_dict and project_dict ["variables_clean_all_before_set" ]):
0 commit comments