mirror of
				https://github.com/LOLBAS-Project/LOLBAS
				synced 2025-10-31 16:49:36 +01:00 
			
		
		
		
	Fixing yml files with .yaml extension (#338)
This commit is contained in:
		
							
								
								
									
										8
									
								
								.github/workflows/yaml-linting.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/yaml-linting.yml
									
									
									
									
										vendored
									
									
								
							| @@ -9,7 +9,13 @@ jobs: | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|       - name: Check file extensions | ||||
|         run: if [[ $(find "${GITHUB.WORKSPACE}/yml" -type f -not -name "*.yml") ]]; then echo "Files with unexpected extension found, please ensure you use '.yml' (all lower case) for files in the yml/ folder."; exit 1; fi | ||||
|         run: | | ||||
|           files=$(find "$GITHUB_WORKSPACE/yml" -type f -not -name "*.yml"); | ||||
|           if [[ $files ]]; then | ||||
|             echo "Files with unexpected extension found, please ensure you use '.yml' (all lower case) for files in the yml/ folder."; | ||||
|             for i in $files; do echo "::error file=$i,line=1::Unexpected extension"; done | ||||
|             exit 1; | ||||
|           fi | ||||
|       - name: yaml-lint | ||||
|         uses: ibiqlik/action-yamllint@v3 | ||||
|         with: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user