sponsors-maintainers-man-completions: update sponsors too.

This commit is contained in:
Mike McQuaid 2022-09-08 10:45:15 +01:00
parent bc295f7947
commit 8be9094622
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -1,9 +1,9 @@
name: Update maintainers, manpage and completions name: Update sponsors, maintainers, manpage and completions
on: on:
push: push:
paths: paths:
- .github/workflows/maintainers-man-completions.yml - .github/workflows/sponsors-maintainers-man-completions.yml
- README.md - README.md
- Library/Homebrew/cmd/** - Library/Homebrew/cmd/**
- Library/Homebrew/dev-cmd/** - Library/Homebrew/dev-cmd/**
@ -54,7 +54,7 @@ jobs:
then then
BRANCH="$GITHUB_REF_NAME" BRANCH="$GITHUB_REF_NAME"
else else
BRANCH=maintainers-man-completions BRANCH=sponsors-maintainers-man-completions
fi fi
echo "::set-output name=branch::${BRANCH}" echo "::set-output name=branch::${BRANCH}"
@ -69,13 +69,21 @@ jobs:
git checkout --no-track -B "${BRANCH}" origin/master git checkout --no-track -B "${BRANCH}" origin/master
fi fi
if brew sponsors
then
git add "${GITHUB_WORKSPACE}/README.md"
git commit -m "Update sponsors." \
-m "Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow."
COMMITTED=true
fi
if brew update-maintainers if brew update-maintainers
then then
git add "${GITHUB_WORKSPACE}/README.md" \ git add "${GITHUB_WORKSPACE}/README.md" \
"${GITHUB_WORKSPACE}/docs/Manpage.md" \ "${GITHUB_WORKSPACE}/docs/Manpage.md" \
"${GITHUB_WORKSPACE}/manpages/brew.1" "${GITHUB_WORKSPACE}/manpages/brew.1"
git commit -m "Update maintainers." \ git commit -m "Update maintainers." \
-m "Autogenerated by the [update-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/maintainers-man-completions.yml) workflow." -m "Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow."
COMMITTED=true COMMITTED=true
fi fi
@ -86,7 +94,7 @@ jobs:
"${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 manpage and completions." \
-m "Autogenerated by the [update-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/maintainers-man-completions.yml) workflow." -m "Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow."
COMMITTED=true COMMITTED=true
fi fi