workflows/apidoc: try to rebase before pushing.
This avoids failures when you have two `master` builds running at once.
This commit is contained in:
		
							parent
							
								
									88a1334664
								
							
						
					
					
						commit
						c79cb6a2db
					
				
							
								
								
									
										4
									
								
								.github/workflows/apidoc.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/apidoc.yml
									
									
									
									
										vendored
									
									
								
							@ -34,8 +34,10 @@ jobs:
 | 
			
		||||
 | 
			
		||||
          # commit and push generated files
 | 
			
		||||
          git add docs
 | 
			
		||||
          
 | 
			
		||||
 | 
			
		||||
          if ! git diff --exit-code HEAD -- docs; then
 | 
			
		||||
            git commit -m 'docs: update from Homebrew/brew push' docs
 | 
			
		||||
            git fetch
 | 
			
		||||
            git rebase origin/master
 | 
			
		||||
            git push
 | 
			
		||||
          fi
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user