Skip to content

Commit ba612e5

Browse files
committed
merge: integrate feature/ci-changelog-fix
2 parents 880083e + 74bd4df commit ba612e5

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/deploy-google-play.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)