You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ "${VERSION_BUMP}" == "false" && -n "${uncommitted_changes}" ]]; then
39
+
if [[ "${VERSION_BUMP}" == "false" && -n "${diff_changelog}" ]]; then
43
40
echo "Error: Changelog should only be updated alongside a version bump. Please restore the changelog."
44
41
exit 1
45
42
fi
46
-
47
-
if [[ "${VERSION_BUMP}" == "true" && -n "${diff_changelog}" ]]; then
48
-
echo "Error: Changelog must be updated alongside a version bump. Please run 'npm run gen-ipa-changelog' from the ipa directory and commit the changes."
43
+
44
+
npm run gen-ipa-changelog
45
+
46
+
# Check CHANGELOG.md is the generated changelog result
47
+
uncommitted_changes=$(git status --porcelain | grep "CHANGELOG.md" || echo "")
48
+
49
+
if [[ "${VERSION_BUMP}" == "true" && -n "${uncommitted_changes}" ]]; then
50
+
echo "Error: Changelog is not the same as the generated result. Please run 'npm run gen-ipa-changelog' from the ipa directory and commit the changes."
0 commit comments