Skip to content

Commit

Permalink
ci: automatically create the Brew formula PR on release
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Dec 20, 2024
1 parent 13eb9e8 commit 0fc6ccc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ if ! type "gh" >/dev/null; then
exit 1
fi

if ! type "brew" >/dev/null; then
echo "The \"brew\" command must be installed."
exit 1
fi

if [[ $# -ne 1 ]]; then
echo "Usage: ./release.sh version" >&2
exit 1
Expand Down Expand Up @@ -47,3 +52,4 @@ tags=$(git tag --list --sort=-version:refname 'v*')
previous_tag=$(awk 'NR==2 {print;exit}' <<<"${tags}")

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"

0 comments on commit 0fc6ccc

Please sign in to comment.