Skip to content

Commit b09549b

Browse files
committed
ignore for github action
1 parent 696d900 commit b09549b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

install.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,18 @@ else
203203
fi
204204

205205
# Check Xcode version
206-
XCODE_VERSION=$(xcodebuild -version | grep '^Xcode\s' | sed -E 's/^Xcode[[:space:]]+([0-9\.]+)/\1/')
207-
if [ "$XCODE_VERSION" != "16.2" ]; then
208-
echo -e "\033[31m❌ Error: Xcode version $XCODE_VERSION is installed. This script requires Xcode version 16.2.\033[0m"
209-
echo -e "\033[33m💡 Please follow the guide to downgrade Xcode to version 16.2:\033[0m"
210-
echo -e "\033[34m https://www.antonseagull.com/post/how-to-downgrade-xcode\033[0m"
211-
exit 1
206+
if [[ -z "$GITHUB_ACTIONS" ]]; then
207+
XCODE_VERSION=$(xcodebuild -version | grep '^Xcode\s' | sed -E 's/^Xcode[[:space:]]+([0-9\.]+)/\1/')
208+
if [ "$XCODE_VERSION" != "16.2" ]; then
209+
echo -e "\033[31m❌ Error: Xcode version $XCODE_VERSION is installed. This script requires Xcode version 16.2.\033[0m"
210+
echo -e "\033[33m💡 Please follow the guide to downgrade Xcode to version 16.2:\033[0m"
211+
echo -e "\033[34m https://www.antonseagull.com/post/how-to-downgrade-xcode\033[0m"
212+
exit 1
213+
else
214+
echo -e "\033[36m> Xcode version 16.2 confirmed\033[0m"
215+
fi
212216
else
213-
echo -e "\033[36m> Xcode version 16.2 confirmed\033[0m"
217+
echo -e "\033[33m⚠️ Skipping Xcode version check in GitHub Actions.\033[0m"
214218
fi
215219

216220
# Check if the Xcode path is correct

0 commit comments

Comments
 (0)