Skip to content

Commit

Permalink
Update prep-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
crow committed Dec 9, 2024
1 parent cd8088d commit 6364f7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/update_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,26 @@ if [ -n "$IOS_VERSION" ] || [ -n "$ANDROID_VERSION" ]; then
NEW_ENTRY+="$RELEASE_TYPE release that updates"

if [ -n "$ANDROID_VERSION" ]; then
NEW_ENTRY+=" the Android SDK to [$ANDROID_VERSION](https://github.com/urbanairship/android-library/releases/tag/$ANDROID_VERSION)"
NEW_ENTRY+=" the Android SDK to $ANDROID_VERSION"
fi

if [ -n "$IOS_VERSION" ] && [ -n "$ANDROID_VERSION" ]; then
NEW_ENTRY+=" and"
fi

if [ -n "$IOS_VERSION" ]; then
NEW_ENTRY+=" the iOS SDK to [$IOS_VERSION](https://github.com/urbanairship/ios-library/releases/tag/$IOS_VERSION)"
NEW_ENTRY+=" the iOS SDK to $IOS_VERSION"
fi

NEW_ENTRY+="\n\n### Changes\n"

if [ -n "$ANDROID_VERSION" ]; then
NEW_ENTRY+="- Updated Android SDK to $ANDROID_VERSION"
NEW_ENTRY+="- Updated Android SDK to [$ANDROID_VERSION](https://github.com/urbanairship/android-library/releases/tag/$ANDROID_VERSION)"
fi

if [ -n "$IOS_VERSION" ]; then
NEW_ENTRY+="\n"
NEW_ENTRY+="- Updated iOS SDK to $IOS_VERSION"
NEW_ENTRY+="- Updated iOS SDK to [$IOS_VERSION](https://github.com/urbanairship/ios-library/releases/tag/$IOS_VERSION)"
fi
else
NEW_ENTRY+="$RELEASE_TYPE release."
Expand Down

0 comments on commit 6364f7b

Please sign in to comment.