@@ -81,32 +81,49 @@ jobs:
8181
8282 - name : Gather all release notes between versions
8383 id : notes
84+ shell : bash {0}
8485 run : |
8586 ANDROID_OLD=${{ steps.current.outputs.android_current }}
8687 ANDROID_NEW=${{ inputs.android_version }}
8788 IOS_OLD=${{ steps.current.outputs.ios_current }}
8889 IOS_NEW=${{ inputs.ios_version }}
8990
91+ echo "ANDROID_OLD=${ANDROID_OLD}, ANDROID_NEW=${ANDROID_NEW}"
92+ echo "IOS_OLD=${IOS_OLD}, IOS_NEW=${IOS_NEW}"
93+
9094 get_notes_between() {
9195 local repo=$1
9296 local from=$2
9397 local to=$3
94- RELEASES=$(gh release list --repo "$repo" --limit 200 --json tagName --jq '.[] | .tagName' | sort -V)
98+
99+ echo "🔎 Gathering release notes for $repo from $from → $to"
100+ RELEASES=$(gh release list --repo "$repo" --limit 200 --json tagName --jq '.[] | .tagName' | sed 's/^Release //g' | sort -V)
95101 START=0
96102 NOTES=""
103+ FOUND=0
104+
97105 for TAG in $RELEASES; do
106+ echo "Checking tag: $TAG"
98107 if [[ "$TAG" == "$from" ]]; then
99108 START=1
100109 continue
101110 fi
102111 if [[ "$START" -eq 1 ]]; then
103- BODY=$(gh release view "$TAG" --repo "$repo" --json body,tagName --jq '". - ### " + .tagName + "\n" + .body')
104- NOTES+="$BODY\n\n"
112+ BODY=$(gh release view "$TAG" --repo "$repo" --json body,tagName --jq '". - ### " + .tagName + "\n" + (.body // "")' 2>/dev/null || true)
113+ if [[ -n "$BODY" ]]; then
114+ NOTES+="$BODY\n\n"
115+ FOUND=1
116+ fi
105117 fi
106118 if [[ "$TAG" == "$to" ]]; then
107119 break
108120 fi
109121 done
122+
123+ if [[ "$FOUND" -eq 0 ]]; then
124+ echo "⚠️ No notes found between $from → $to (possibly mismatched tags)"
125+ fi
126+
110127 echo -e "$NOTES"
111128 }
112129
@@ -120,6 +137,8 @@ jobs:
120137 echo "$IOS_NOTES" >> $GITHUB_OUTPUT
121138 echo "EOF" >> $GITHUB_OUTPUT
122139
140+
141+
123142 - name : Update native SDK versions in Unity dependencies
124143 run : |
125144 ANDROID_NEW=${{ inputs.android_version }}
0 commit comments