Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate updation of maintainers in README #10673

Merged
merged 1 commit into from
Feb 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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