From 2264ef91e16add406372ac20412fd45bd150a8f8 Mon Sep 17 00:00:00 2001 From: Shahroz Khan Date: Mon, 26 Oct 2026 16:21:31 -0400 Subject: [PATCH] ci: skip native major versions in the auto-update workflow A native major needs a hand-written wrapper major (new pins, the Firebase wrapper, minimums). The daily run now skips a latest release whose major differs from the pinned one; a manual run that names the version can still take it. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/auto-update-native-sdks.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-update-native-sdks.yml b/.github/workflows/auto-update-native-sdks.yml index 11ca3209..83350c5d 100644 --- a/.github/workflows/auto-update-native-sdks.yml +++ b/.github/workflows/auto-update-native-sdks.yml @@ -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"