From 88127eee4b1f638cb10b8689814626c69cab4803 Mon Sep 17 00:00:00 2001 From: nandahkrishna Date: Tue, 23 Feb 2021 01:40:02 +0530 Subject: [PATCH] Automate updation of maintainers in README --- .github/workflows/update-manpage.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-manpage.yml b/.github/workflows/update-manpage.yml index 566d531461..ea903c1fab 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