Files
AndroidJetpack/ivy-wallet/scripts/composeStabilityBaseline.sh
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

19 lines
629 B
Bash

#!/bin/bash
# -------------------
# 0. ROOT DIRECTORY CHECK
# -------------------
# Check if the script is being run from the root directory of the repo
if [ ! -f "settings.gradle.kts" ]; then
echo "ERROR:"
echo "Please run this script from the root directory of the repo."
exit 1
fi
./gradlew :ci-actions:compose-stability:run --args='generateBaseline' || exit 0
git add ci-actions/compose-stability/ivy-compose-stability-baseline.txt || exit 0
git commit -m "Add Compose Stability baseline" || exit 0
echo "Compose Stability baseline added."
echo "[SUCCESS] Compose Stability baseline committed. Do 'git push'."