From b49d9db2dc066797564aa6870d75774f5c2e68cb Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Sun, 10 Mar 2024 19:48:06 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20tap=20logic=20from=20br?= =?UTF-8?q?ew=5Fcore=5Fupdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/brew_core_update | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/script/brew_core_update b/script/brew_core_update index 5e04b50..2297ead 100755 --- a/script/brew_core_update +++ b/script/brew_core_update @@ -10,8 +10,6 @@ # CORE_TAP_PATH="$(brew --repository homebrew/core)" -MAS_TAP_PATH="$(brew --repository mas-cli/tap)" -MAS_TAP_PATH_FORMULA="${MAS_TAP_PATH}/Formula/mas.rb" CORE_FORMULA_PATH="${CORE_TAP_PATH}/Formula/" CORE_MAS_FORMULA_PATH="${CORE_FORMULA_PATH}/m/mas.rb" @@ -21,7 +19,7 @@ LOCAL_MAS_FORMULA_PATH="${PROJECT_PATH}/Homebrew/mas.rb" LOCAL_TAP_FORMULA_PATH="${PROJECT_PATH}/Homebrew/mas-tap.rb" function usage { - echo "Usage: brew_formula_update [-d] v0.0 [sha1_hash]" + echo "Usage: brew_core_update [-d] v0.0 [sha1_hash]" echo " -d option enables dry run mode" echo " version will be inferred using version script if not provided" echo " sha will be inferred from the current commit if not provided" @@ -205,35 +203,3 @@ $echo gh pr create \ --draft \ --fill -################################################################################ -# -# Create pr on mas-cli/homebrew-tap -# - -# Ensure mas is tapped -if ! [[ -d "${MAS_TAP_PATH}" ]]; then - brew tap mas-cli/tap -fi - -# Update tap formula version -cp -v "${LOCAL_TAP_FORMULA_PATH}" "${MAS_TAP_PATH_FORMULA}" - -pushd "${MAS_TAP_PATH}" - -branch_name="releases/release-${MAS_VERSION}" -$echo git branch "${branch_name}" -$echo git switch "${branch_name}" - -$echo git add \ - "${MAS_TAP_PATH_FORMULA}" - -$echo git commit --message="🔖 Version ${MAS_VERSION}" - -$echo gh pr create \ - --assignee phatblat \ - --base main \ - --draft \ - --fill - -popd -