Automate updation of maintainers in README

This commit is contained in:
nandahkrishna 2021-02-23 01:40:02 +05:30
parent 52e1fadb70
commit 88127eee4b
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA

View File

@ -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