mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-10-30 23:51:01 +01:00 
			
		
		
		
	.github: fix automated update in CI
Automated dependencies update in CI was failing whenever no new changes were detected since git diff was returning 1. Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
This commit is contained in:
		
							parent
							
								
									89b57081f7
								
							
						
					
					
						commit
						24b0e699e4
					
				
							
								
								
									
										4
									
								
								.github/workflows/versions.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/versions.yaml
									
									
									
									
										vendored
									
									
								
							| @ -35,8 +35,8 @@ jobs: | |||||||
|         make generate |         make generate | ||||||
| 
 | 
 | ||||||
|         # Reset jsonnetfile.lock.json if no dependencies were updated |         # Reset jsonnetfile.lock.json if no dependencies were updated | ||||||
|         changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json') |         changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json' | wc -l) | ||||||
|         if [[ $changedFiles == "" ]]; then |         if [[ "$changedFiles" -eq 0 ]]; then | ||||||
|           git checkout -- jsonnetfile.lock.json; |           git checkout -- jsonnetfile.lock.json; | ||||||
|         fi |         fi | ||||||
|     - name: Create Pull Request |     - name: Create Pull Request | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user