Improve the QMK Lint workflow (#10909)
* properly set the exit_code * handle the case where exit_code is greater than 255
This commit is contained in:
		
							parent
							
								
									aae3b35c0f
								
							
						
					
					
						commit
						683ba8b8d4
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								.github/workflows/lint.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/lint.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -46,6 +46,10 @@ jobs:
 | 
				
			||||||
            echo "linting ${KB}"
 | 
					            echo "linting ${KB}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            qmk lint --keyboard ${KB} && qmk info -l --keyboard ${KB}
 | 
					            qmk lint --keyboard ${KB} && qmk info -l --keyboard ${KB}
 | 
				
			||||||
 | 
					            exit_code=$(($exit_code + $?))
 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
        done
 | 
					        done
 | 
				
			||||||
 | 
					        if [[ $exit_code -gt 255 ]]; then
 | 
				
			||||||
 | 
					            exit 255
 | 
				
			||||||
 | 
					        fi
 | 
				
			||||||
        exit $exit_code
 | 
					        exit $exit_code
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue