Skip to content

Commit

Permalink
Merge pull request #10673 from nandahkrishna/automate-update-maintainers
Browse files Browse the repository at this point in the history
Automate updation of maintainers in README
  • Loading branch information
MikeMcQuaid committed Feb 26, 2021
2 parents 811df90 + 88127ee commit e64cf21
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/update-manpage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update manpage and completions
name: Update maintainers, manpage and completions

on:
push:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e64cf21

Please sign in to comment.