mirror of
				https://github.com/Theodor-Springmann-Stiftung/KGPZ.git
				synced 2025-11-04 03:35:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			538 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			538 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import os
 | 
						|
 | 
						|
def main():
 | 
						|
    if not os.path.exists('reference_check_errors.txt'):
 | 
						|
        print("Keine Referenzprüfungs-Ergebnisse gefunden.")
 | 
						|
        return
 | 
						|
 | 
						|
    with open('reference_check_errors.txt', 'r') as f:
 | 
						|
        for line in f:
 | 
						|
            parts = line.strip().split(', Zeile ')
 | 
						|
            if len(parts) == 2:
 | 
						|
                file_path, rest = parts
 | 
						|
                line_number, message = rest.split(': ', 1)
 | 
						|
                print(f"::error file={file_path},line={line_number}::{message}")
 | 
						|
 | 
						|
if __name__ == "__main__":
 | 
						|
    main()
 |