Merge pull request #10673 from nandahkrishna/automate-update-maintainers

Automate updation of maintainers in README
This commit is contained in:
Mike McQuaid 2021-02-26 12:30:26 +00:00 committed by GitHub
commit e64cf21889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
name: Update manpage and completions name: Update maintainers, manpage and completions
on: on:
push: push:
@ -30,7 +30,7 @@ jobs:
with: with:
username: BrewTestBot username: BrewTestBot
- name: Update manpage and completions - name: Update maintainers, manpage and completions
id: update id: update
run: | run: |
git fetch origin git fetch origin
@ -46,13 +46,18 @@ jobs:
BRANCH_EXISTS="1" BRANCH_EXISTS="1"
fi fi
if [ "${{github.event_name}}" != "push" ]; then
brew update-maintainers
fi
brew man brew man
if [ -n "$(git status --porcelain=v1 2>/dev/null)" ]; then 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/manpages/brew.1" \
"$GITHUB_WORKSPACE/completions" "$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." -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" echo "::set-output name=committed::true"
if [ -n "$BRANCH_EXISTS" ]; then if [ -n "$BRANCH_EXISTS" ]; then