Skip to content

Commit c2792b8

Browse files
committed
Allow skipping sister repo updates in release.sh
Set SKIP_SISTER_REPOS=1 to bypass the LoopFollow_Second / LoopFollow_Third update_follower steps. Default behavior is unchanged: both sister repos are updated as today and missing directories still cause a hard error, so a forgotten clone in production fails fast.
1 parent 1f565ac commit c2792b8

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

release.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,20 @@ git diff -M --binary "$MAIN_BRANCH" "$RELEASE_BRANCH" \
117117
> "$PATCH_FILE"
118118

119119
cd ..
120-
update_follower "$SECOND_DIR"
121-
update_follower "$THIRD_DIR"
120+
if [ -n "${SKIP_SISTER_REPOS:-}" ]; then
121+
echo "⏭️ Skipping sister repo updates (SKIP_SISTER_REPOS is set)"
122+
else
123+
update_follower "$SECOND_DIR"
124+
update_follower "$THIRD_DIR"
125+
fi
122126

123127
# ---------- GitHub Actions Test ---------
124-
echo;
125-
echo "💻 Test GitHub Build Actions for all three repositories and then continue.";
128+
echo;
129+
if [ -n "${SKIP_SISTER_REPOS:-}" ]; then
130+
echo "💻 Test GitHub Build Actions for the primary repository and then continue.";
131+
else
132+
echo "💻 Test GitHub Build Actions for all three repositories and then continue.";
133+
fi
126134
pause
127135

128136
# --- return to primary path

0 commit comments

Comments
 (0)