mirror of
				https://github.com/Theodor-Springmann-Stiftung/KGPZ.git
				synced 2025-10-31 09:45:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			628 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			628 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Output Category Stats
 | |
| 
 | |
| on:
 | |
|   push:
 | |
|     branches:
 | |
|       - main
 | |
| 
 | |
| jobs:
 | |
|   output-stats:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|     - name: Checkout repository
 | |
|       uses: actions/checkout@v4
 | |
| 
 | |
|     - name: Run stats script
 | |
|       env:
 | |
|         INPUT_DIR: './XML/beitraege' # Path to your XML files directory
 | |
|         OUTPUT_FILE: './stats.txt'   # Output file for stats
 | |
|       run: |
 | |
|         python Scripts/stats.py
 | |
|         cat ./stats.txt # Output stats to console
 | |
| 
 | |
|     - name: Upload stats artifact
 | |
|       uses: actions/upload-artifact@v4
 | |
|       with:
 | |
|         name: category-stats
 | |
|         path: ./stats.txt # Path to the stats file
 | 
