File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,16 +35,14 @@ jobs:
3535 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3636 run : gh auth status || gh auth login --with-token <<< "${GH_TOKEN}"
3737
38- - name : Detect current SDK versions
38+ - name : Get current native SDK versions
3939 id : current
4040 run : |
41- # Example: extract versions from a constants file or C# source
42- ANDROID_CURRENT=$(grep -Eo 'OneSignalAndroidSDKVersion = "[^"]+"' com.onesignal.unity.core/Runtime/OneSignalPlatform.cs | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
43- IOS_CURRENT=$(grep -Eo 'OneSignaliOSSDKVersion = "[^"]+"' com.onesignal.unity.core/Runtime/OneSignalPlatform.cs | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')
41+ ANDROID_CURRENT=$(grep -oP '(?<=OneSignal-Android-SDK:)[0-9]+\.[0-9]+\.[0-9]+' OneSignalExample/Assets/OneSignal/Editor/OneSignalAndroidDependencies.xml | head -1)
42+ IOS_CURRENT=$(grep -oP '(?<=OneSignal-iOS-SDK:)[0-9]+\.[0-9]+\.[0-9]+' OneSignalExample/Assets/OneSignal/Editor/OneSignaliOSDependencies.xml | head -1)
4443
4544 echo "android_current=${ANDROID_CURRENT}" >> $GITHUB_OUTPUT
4645 echo "ios_current=${IOS_CURRENT}" >> $GITHUB_OUTPUT
47-
4846 echo "Detected current Android SDK: ${ANDROID_CURRENT}"
4947 echo "Detected current iOS SDK: ${IOS_CURRENT}"
5048
You can’t perform that action at this time.
0 commit comments