File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,19 @@ if [ ! -d "src/config" ]; then
2828fi
2929
3030# Ensure we have branch-specific SUMMARY files
31- # If they don't exist, create them from the current SUMMARY.md
31+ # If they don't exist, fail with an error
3232if [ ! -f " src/config/SUMMARY.md.develop" ]; then
33- echo " Creating develop SUMMARY file from current... "
34- cp src/SUMMARY.md src/config/SUMMARY.md.develop
33+ echo " ERROR: src/config/SUMMARY.md. develop file is missing! "
34+ exit 1
3535fi
3636
3737if [ ! -f " src/config/SUMMARY.md.main" ]; then
38- echo " Creating main SUMMARY file from current... "
39- cp src/SUMMARY.md src/config/SUMMARY.md.main
38+ echo " ERROR: src/config/SUMMARY.md. main file is missing! "
39+ exit 1
4040fi
4141
4242# Select the appropriate SUMMARY.md based on branch
43- if [ " $CURRENT_BRANCH " = " main" ]; then
43+ if [ " $CURRENT_BRANCH " = " main" ] || [ " $CURRENT_BRANCH " = " master " ] ; then
4444 echo " Using main branch SUMMARY.md"
4545 cp src/config/SUMMARY.md.main src/SUMMARY.md
4646else
You can’t perform that action at this time.
0 commit comments