Skip to content

Commit 44c4596

Browse files
author
Sophia Marie Terry
committed
changelog logic update
1 parent fdcbc55 commit 44c4596

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ipa-changelog.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ jobs:
3636
3737
# Check for uncommitted changes specific to CHANGELOG.md
3838
uncommitted_changes=$(git status --porcelain | grep "CHANGELOG.md" || echo "")
39+
40+
diff_changelog=$(git diff -- tools/spectral/ipa/CHANGELOG.md || echo "")
3941
4042
if [[ "${VERSION_BUMP}" == "false" && -n "${uncommitted_changes}" ]]; then
4143
echo "Error: Changelog should only be updated alongside a version bump. Please restore the changelog."
4244
exit 1
4345
fi
4446

45-
if [[ "${VERSION_BUMP}" == "true" && -z "${uncommitted_changes}" ]]; then
47+
if [[ "${VERSION_BUMP}" == "true" && -n "${diff_changelog}" ]]; then
4648
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."
4749
exit 1
4850
fi

0 commit comments

Comments
 (0)