diff --git a/.github/workflows/update-manpage.yml b/.github/workflows/update-manpage.yml index 566d53146135d..ea903c1fab9f4 100644 --- a/.github/workflows/update-manpage.yml +++ b/.github/workflows/update-manpage.yml @@ -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