Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/auto-update-native-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,18 @@ jobs:
# Get latest versions
LATEST_IOS="${INPUT_IOS:-$(get_latest_release 'customerio/customerio-ios')}"
LATEST_ANDROID="${INPUT_ANDROID:-$(get_latest_release 'customerio/customerio-android')}"


# A native major needs a hand-written wrapper major (new pins, Firebase wrapper, minimums), so
# only a manual run that names the version can cross one.
if [[ -z "$INPUT_IOS" && -n "$LATEST_IOS" && "${LATEST_IOS%%.*}" != "${CURRENT_IOS%%.*}" ]]; then
echo "::warning::Skipping customerio-ios $LATEST_IOS: it's a new major from $CURRENT_IOS. Update the wrapper by hand."
LATEST_IOS=""
fi
if [[ -z "$INPUT_ANDROID" && -n "$LATEST_ANDROID" && "${LATEST_ANDROID%%.*}" != "${CURRENT_ANDROID%%.*}" ]]; then
echo "::warning::Skipping customerio-android $LATEST_ANDROID: it's a new major from $CURRENT_ANDROID. Update the wrapper by hand."
LATEST_ANDROID=""
fi

# Check if updates needed
IOS_NEEDS_UPDATE="false"
ANDROID_NEEDS_UPDATE="false"
Expand Down
Loading