mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
Check for existing placeholder in CHANGELOG.md before adding another
This commit is contained in:
@@ -38,7 +38,9 @@ TEMP_CHANGELOG=$(mktemp)
|
||||
} > "$TEMP_CHANGELOG"
|
||||
|
||||
# Replace the original file
|
||||
mv "$TEMP_CHANGELOG" CHANGELOG.md
|
||||
if ! grep -q "tag/$NEW_VERSION)" CHANGELOG.md; then
|
||||
mv "$TEMP_CHANGELOG" CHANGELOG.md
|
||||
fi
|
||||
|
||||
# 2. Update version in SwiftFormat.podspec.json
|
||||
echo "Updating SwiftFormat.podspec.json..."
|
||||
|
||||
Reference in New Issue
Block a user