Skip to content

Commit

Permalink
Update check-changelog.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wqcstrong committed Nov 29, 2024
1 parent 11c418b commit 3442a97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/check-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ CHANGELOG_FILES=(

for FILE in "${CHANGELOG_FILES[@]}"; do
if ! grep -q "$PACKAGE_VERSION" "$FILE"; then
echo "❌ Cannot find the description about $PACKAGE_VERSION in the $FILE"
echo "Rollback the version..."
echo "❌ Cannot find the $PACKAGE_VERSION description in the changelog"
echo "⬅️ Rollback the version..."

git reset --hard HEAD^
git tag -d "v$PACKAGE_VERSION"
PREV_VERSION=$(git describe --tags --abbrev=0)

echo "Version rollback to $PREV_VERSION"
echo "🟡 Version rollback to $PREV_VERSION"
exit 1
fi
done

0 comments on commit 3442a97

Please sign in to comment.