Skip to content

Commit

Permalink
Added git pull echo ↞ [auto-sync from https://github.com/adamlui/ai…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 23, 2024
1 parent efb1480 commit b16acf3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions utils/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ for manifest_path in "${MANIFEST_PATHS[@]}" ; do
((bumped_cnt++))

done

# COMMIT/PUSH bump(s)
if (( $bumped_cnt == 0 )) ; then echo -e "${BW}Completed. No manifests bumped.${NC}" ; exit 0 ; fi

# PULL latest changes
echo -e "${BY}Pulling latest changes from remote to sync local repository...${NC}\n"
git pull || (echo -e "${BR}Merge failed, please resolve conflicts!${NC}" && exit 1)

# ADD/COMMIT/PUSH bump(s)
plural_suffix=$((( $bumped_cnt > 1 )) && echo "s")
echo -e "${BG}${bumped_cnt} manifest${plural_suffix} bumped!\n${NC}"
echo -e "\n${BG}${bumped_cnt} manifest${plural_suffix} bumped!\n${NC}"
echo -e "${BY}Committing bump${plural_suffix} to Git...\n${NC}"
COMMIT_MSG="Bumped \`version\`"
unique_versions=($(printf "%s\n" "${new_versions[@]}" | sort -u))
Expand Down

0 comments on commit b16acf3

Please sign in to comment.