Skip to content

Commit ae289ce

Browse files
test: should fail
1 parent 5080895 commit ae289ce

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/ipa-changelog.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,13 @@ jobs:
3232
env:
3333
VERSION_BUMP: ${{ steps.version_check.outputs.version_changed }}
3434
run: |
35-
diff_changelog=$(git diff -- tools/spectral/ipa/CHANGELOG.md || echo "")
35+
diff_changelog=$(git diff origin/main -- tools/spectral/ipa/CHANGELOG.md || echo "")
3636
3737
if [[ "${VERSION_BUMP}" == "false" && -n "${diff_changelog}" ]]; then
3838
echo "Error: Changelog should only be updated alongside a version bump. Please restore the changelog."
3939
exit 1
4040
fi
4141

42-
if [[ "${VERSION_BUMP}" == "true" && -n "${diff_changelog}" ]]; then
43-
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."
44-
exit 1
45-
fi
46-
4742
npm run gen-ipa-changelog
4843

4944
# Check CHANGELOG.md is the generated changelog result

0 commit comments

Comments
 (0)