mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-09-26 19:41:13 +08:00
ci: automatically create the Brew formula PR on release
This commit is contained in:
@@ -19,6 +19,11 @@ if ! type "gh" >/dev/null; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! type "brew" >/dev/null; then
|
||||||
|
echo "The \"brew\" command must be installed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $# -ne 1 ]]; then
|
if [[ $# -ne 1 ]]; then
|
||||||
echo "Usage: ./release.sh version" >&2
|
echo "Usage: ./release.sh version" >&2
|
||||||
exit 1
|
exit 1
|
||||||
@@ -47,3 +52,4 @@ tags=$(git tag --list --sort=-version:refname 'v*')
|
|||||||
previous_tag=$(awk 'NR==2 {print;exit}' <<<"${tags}")
|
previous_tag=$(awk 'NR==2 {print;exit}' <<<"${tags}")
|
||||||
|
|
||||||
gh release create --draft --generate-notes --latest --notes-start-tag "${previous_tag}" --verify-tag "v$1"
|
gh release create --draft --generate-notes --latest --notes-start-tag "${previous_tag}" --verify-tag "v$1"
|
||||||
|
brew bump-formula-pr dunglas/frankenphp/frankenphp --version "$1"
|
||||||
|
Reference in New Issue
Block a user