Merge pull request #10673 from nandahkrishna/automate-update-maintainers
Automate updation of maintainers in README
This commit is contained in:
		
						commit
						e64cf21889
					
				
							
								
								
									
										13
									
								
								.github/workflows/update-manpage.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/update-manpage.yml
									
									
									
									
										vendored
									
									
								
							@ -1,4 +1,4 @@
 | 
			
		||||
name: Update manpage and completions
 | 
			
		||||
name: Update maintainers, manpage and completions
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
@ -30,7 +30,7 @@ jobs:
 | 
			
		||||
        with:
 | 
			
		||||
          username: BrewTestBot
 | 
			
		||||
 | 
			
		||||
      - name: Update manpage and completions
 | 
			
		||||
      - name: Update maintainers, manpage and completions
 | 
			
		||||
        id: update
 | 
			
		||||
        run: |
 | 
			
		||||
          git fetch origin
 | 
			
		||||
@ -46,13 +46,18 @@ jobs:
 | 
			
		||||
            BRANCH_EXISTS="1"
 | 
			
		||||
          fi
 | 
			
		||||
 | 
			
		||||
          if [ "${{github.event_name}}" != "push" ]; then
 | 
			
		||||
            brew update-maintainers
 | 
			
		||||
          fi
 | 
			
		||||
 | 
			
		||||
          brew man
 | 
			
		||||
 | 
			
		||||
          if [ -n "$(git status --porcelain=v1 2>/dev/null)" ]; then
 | 
			
		||||
            git add "$GITHUB_WORKSPACE/docs/Manpage.md" \
 | 
			
		||||
            git add "$GITHUB_WORKSPACE/README.md" \
 | 
			
		||||
                    "$GITHUB_WORKSPACE/docs/Manpage.md" \
 | 
			
		||||
                    "$GITHUB_WORKSPACE/manpages/brew.1" \
 | 
			
		||||
                    "$GITHUB_WORKSPACE/completions"
 | 
			
		||||
            git commit -m "Update manpage and completions." \
 | 
			
		||||
            git commit -m "Update maintainers, manpage and completions." \
 | 
			
		||||
                       -m "Autogenerated by the [update-manpage](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-manpage.yml) workflow."
 | 
			
		||||
            echo "::set-output name=committed::true"
 | 
			
		||||
            if [ -n "$BRANCH_EXISTS" ]; then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user