File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,6 +148,24 @@ jobs:
148148 echo "AAB_PATH=$AAB_PATH" >> $GITHUB_OUTPUT
149149 echo "Found AAB: $AAB_PATH ($(du -sh "$AAB_PATH" | cut -f1))"
150150
151+ - name : Ensure changelog exists for version code
152+ run : |
153+ VERSION_CODE=${{ steps.version.outputs.VERSION_CODE }}
154+ for locale_dir in fastlane/metadata/android/*/changelogs; do
155+ target="$locale_dir/$VERSION_CODE.txt"
156+ if [ ! -f "$target" ]; then
157+ latest=$(ls "$locale_dir"/*.txt 2>/dev/null | sort -V | tail -1)
158+ if [ -n "$latest" ]; then
159+ cp "$latest" "$target"
160+ echo "No $VERSION_CODE.txt in $locale_dir — copied from $(basename $latest)"
161+ else
162+ echo "WARNING: No changelog files found in $locale_dir"
163+ fi
164+ else
165+ echo "Changelog $target already exists"
166+ fi
167+ done
168+
151169 - name : Upload to Google Play
152170 uses : r0adkll/upload-google-play@v1
153171 with :
You can’t perform that action at this time.
0 commit comments