operations: Expect 'main' as the default branch name.

This commit is contained in:
Jonathan Bernard 2024-08-12 13:18:19 -05:00
parent b17520946e
commit 8cbdad0e21

View File

@ -10,7 +10,7 @@ rootDir=$(git rev-parse --show-toplevel)
cd "$rootDir" cd "$rootDir"
currentBranch=$(git rev-parse --abbrev-ref HEAD) currentBranch=$(git rev-parse --abbrev-ref HEAD)
if [ "$currentBranch" != "develop" ]; then if [ "$currentBranch" != "main" ]; then
printf "You are currently on the '%s' branch. Is this intended (yes/no)? " "$currentBranch" printf "You are currently on the '%s' branch. Is this intended (yes/no)? " "$currentBranch"
read -r confirmation read -r confirmation
@ -60,4 +60,3 @@ git commit -m "Update package version to ${newVersion}"
printf ">> Tagging commit.\n" printf ">> Tagging commit.\n"
printf "git tag -m \"Version %s\" \"%s\"\n" "$newVersion" "$newVersion" printf "git tag -m \"Version %s\" \"%s\"\n" "$newVersion" "$newVersion"
git tag -m "Version ${newVersion}" "${newVersion}" git tag -m "Version ${newVersion}" "${newVersion}"