File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,13 +55,20 @@ if git ls-remote --tags origin | grep -q "refs/tags/v$VERSION$"; then
5555fi
5656
5757# Stage and amend previous commit
58- echo " ⚠️ Warning: This will amend the last commit. Make sure it hasn't been pushed yet."
59- read -p " Continue (y/n) " -n 1 -r
60- echo
61- if [[ ! " $REPLY " =~ ^[Yy]$ ]]; then
62- echo " Aborted."
63- exit 1
58+ if [ -z " $CI " ]; then
59+ # Only prompt in local/interactive environments
60+ echo " ⚠️ Warning: This will amend the last commit. Make sure it hasn't been pushed yet."
61+ read -p " Continue (y/n)? " -n 1 -r
62+ echo
63+ if [[ ! " $REPLY " =~ ^[Yy]$ ]]; then
64+ echo " Aborted."
65+ exit 1
66+ fi
67+ else
68+ echo " ⚠️ Warning: This will amend the last commit. Make sure it hasn't been pushed yet."
69+ echo " Running in CI mode, skipping confirmation..."
6470fi
71+
6572git add MiddleDrag.xcodeproj/project.pbxproj
6673git commit --amend --no-edit
6774echo " ✓ Amended previous commit with version change"
You can’t perform that action at this time.
0 commit comments