Skip to content

Commit 8e093d4

Browse files
authored
Merge pull request #2114 from jponge/build/fix-clear-revapi
build: fix the RevAPI clearing script
2 parents af65fcf + 6c3bda7 commit 8e093d4

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

justfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,9 @@ perform-release:
9191
clear-revapi:
9292
#!/usr/bin/env bash
9393
jbang .build/CompatibilityUtils.java clear --version="${RELEASE_VERSION}" --do-not-clear-version-prefix="1."
94-
if [[ $(git diff --stat) != '' ]]; then
95-
git add -A
96-
git status
97-
git commit -m "chore(release): clear RevAPI breaking change justifications"
98-
else
94+
if git diff --quiet; then
9995
echo "No justifications cleared"
96+
else
97+
git status
98+
git commit -am "chore(release): clear RevAPI breaking change justifications"
10099
fi

0 commit comments

Comments
 (0)