Skip to content

Commit 8bf2f70

Browse files
authored
Merge pull request #415 from loopandlearn/update_release_script
Add more comments at pauses for release.sh [ci skip]
2 parents f263e99 + 97590bf commit 8bf2f70

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

release.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ update_follower () {
4242
echo_run git fetch
4343
echo_run git pull
4444

45-
# 2 · Apply the patch. Do not use 3way because commit history is not in common
45+
# 2 · Apply the patch
4646
if ! git apply --whitespace=nowarn "$PATCH_FILE"; then
47-
echo "‼️ Some hunks could not be merged automatically."
48-
echo; echo "Use a different terminal to fix files before continuing"
47+
echo "‼️ Some changes could not be applied, so no changes were made."
48+
echo "The command used was: git apply --whitespace=nowarn $PATCH_FILE"
49+
echo; echo "Use a different terminal to fix and apply the patch before continuing"
4950
pause
5051
fi
5152

@@ -63,7 +64,7 @@ update_follower () {
6364
git commit -m "transfer v${new_ver} updates from LF to ${DIR}"
6465

6566
echo_run git status
66-
pause # build & test checkpoint
67+
echo "💻 Build & test $DIR now."; pause # build & test checkpoint
6768
queue_push push origin "$MAIN_BRANCH"
6869
cd ..
6970
}
@@ -127,7 +128,9 @@ update_follower "$SECOND_DIR"
127128
update_follower "$THIRD_DIR"
128129

129130
# ---------- GitHub Actions Test ---------
130-
echo; echo "💻 Test GitHub Build Actions and then continue."; pause
131+
echo;
132+
echo "💻 Test GitHub Build Actions for all three repositories and then continue.";
133+
pause
131134

132135
# --- return to primary path
133136
cd ${PRIMARY_ABS_PATH}
@@ -136,7 +139,7 @@ cd ${PRIMARY_ABS_PATH}
136139
echo; echo "🚀 Ready to tag and push changes upstream."
137140
echo_run git log --oneline -2
138141

139-
read -rp "▶▶ Ready to tag? (y/N): " confirm
142+
read -rp "▶▶ Ready to tag? (y/n): " confirm
140143
if [[ $confirm =~ ^[Yy]$ ]]; then
141144
git tag -a "v${new_ver}" -m "v${new_ver}"
142145
queue_push_tag "v${new_ver}"
@@ -145,7 +148,7 @@ else
145148
echo "🚫 tag skipped, can add later"
146149
fi
147150

148-
read -rp "▶▶ Push everything now? (y/N): " confirm
151+
read -rp "▶▶ Push everything now? (y/n): " confirm
149152
if [[ $confirm =~ ^[Yy]$ ]]; then
150153
for cmd in "${push_cmds[@]}"; do echo "+ $cmd"; bash -c "$cmd"; done
151154
echo "🎉 All pushes completed."

0 commit comments

Comments
 (0)