mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
🔥 Remove tap logic from brew_core_update
This commit is contained in:
parent
c0950b130b
commit
b49d9db2dc
1 changed files with 1 additions and 35 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue