fix: store path for both conf objs
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				build / build (push) Successful in 2m21s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	build / build (push) Successful in 2m21s
				
			This commit is contained in:
		
							parent
							
								
									4c12bf9a34
								
							
						
					
					
						commit
						723705b94f
					
				|  | @ -75,6 +75,8 @@ def convert( | ||||||
|             repo_conf.root = root |             repo_conf.root = root | ||||||
|             repo_conf.path = repo_toml_path.relative_to(root) |             repo_conf.path = repo_toml_path.relative_to(root) | ||||||
|             task_conf = task.Config(**task_obj) |             task_conf = task.Config(**task_obj) | ||||||
|  |             task_conf.root = root | ||||||
|  |             task_conf.path = task_toml_path.relative_to(root) | ||||||
|             result_model = convert_conf(repo_conf, task_conf) |             result_model = convert_conf(repo_conf, task_conf) | ||||||
|             result_dict = result_model.model_dump(by_alias=True, exclude_none=True) |             result_dict = result_model.model_dump(by_alias=True, exclude_none=True) | ||||||
|             with result_json_path.open("w") as result_file: |             with result_json_path.open("w") as result_file: | ||||||
|  |  | ||||||
|  | @ -33,7 +33,8 @@ class Release(BaseModel): | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Config(BaseModel): | class Config(BaseModel): | ||||||
|     path: Path = Path(".") |     root: Path = Path(".") | ||||||
|  |     path: Path = Path("conf.toml") | ||||||
|     task: str  # Task name (e.g., hw3 ex5) |     task: str  # Task name (e.g., hw3 ex5) | ||||||
|     release: Release  # Release configuration |     release: Release  # Release configuration | ||||||
|     stages: List[Stage]  # list of stage configurations |     stages: List[Stage]  # list of stage configurations | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user