gowalk-cicd 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/action/.daemux-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.12
|
|
@@ -208,6 +208,18 @@ def _read_whats_new() -> tuple[str, str]:
|
|
|
208
208
|
return "", "<empty>"
|
|
209
209
|
|
|
210
210
|
|
|
211
|
+
def _locale_release_notes(locale: str) -> str:
|
|
212
|
+
"""Per-locale override: fastlane/metadata/ios/<locale>/release_notes.txt
|
|
213
|
+
under GITHUB_WORKSPACE (fastlane's set_changelog layout, which the README
|
|
214
|
+
documents). Empty string when the file is absent or unreadable."""
|
|
215
|
+
root = os.environ.get("GITHUB_WORKSPACE", ".")
|
|
216
|
+
path = Path(root) / "fastlane" / "metadata" / "ios" / locale / "release_notes.txt"
|
|
217
|
+
try:
|
|
218
|
+
return path.read_text().strip()
|
|
219
|
+
except OSError:
|
|
220
|
+
return ""
|
|
221
|
+
|
|
222
|
+
|
|
211
223
|
def _update_all_localizations(
|
|
212
224
|
token: str, version_id: str, version: str, whats_new: str, seed_locale: str,
|
|
213
225
|
only_if_empty: bool = False,
|
|
@@ -228,7 +240,8 @@ def _update_all_localizations(
|
|
|
228
240
|
)
|
|
229
241
|
entries = locs.get("data") or []
|
|
230
242
|
if not entries:
|
|
231
|
-
|
|
243
|
+
seed_text = _locale_release_notes(seed_locale) or whats_new
|
|
244
|
+
new_id = _create_localization(token, version_id, seed_locale, seed_text)
|
|
232
245
|
_log(
|
|
233
246
|
f"CREATEd appStoreVersionLocalization {new_id} whatsNew for "
|
|
234
247
|
f"{version} ({seed_locale}) -- no prior localizations"
|
|
@@ -248,7 +261,10 @@ def _update_all_localizations(
|
|
|
248
261
|
if existing:
|
|
249
262
|
already += 1
|
|
250
263
|
continue
|
|
251
|
-
|
|
264
|
+
# A committed per-locale release_notes.txt beats the single shared
|
|
265
|
+
# text, so localized notes ship instead of one language everywhere.
|
|
266
|
+
text = _locale_release_notes(loc) or whats_new
|
|
267
|
+
if _patch_localization(token, loc_id, text):
|
|
252
268
|
_log(
|
|
253
269
|
f"PATCHed appStoreVersionLocalization {loc_id} whatsNew "
|
|
254
270
|
f"for {version} ({loc})"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.12
|
package/package.json
CHANGED
package/templates/deploy.yml
CHANGED
|
@@ -149,6 +149,12 @@ jobs:
|
|
|
149
149
|
id: android
|
|
150
150
|
if: ${{ steps.mode.outputs.mode == 'local' }}
|
|
151
151
|
uses: ./.github/actions/android-app
|
|
152
|
+
with:
|
|
153
|
+
# Tests belong to the CI gate, not the deploy path — same policy as
|
|
154
|
+
# the iOS job above. Running the analyzer here breaks every deploy
|
|
155
|
+
# the day a new stable Flutter adds a warning-level lint, even when
|
|
156
|
+
# the app's own CI gate is green.
|
|
157
|
+
run-tests: 'false'
|
|
152
158
|
- name: Retain signed Android App Bundle
|
|
153
159
|
if: ${{ steps.mode.outputs.mode == 'local' }}
|
|
154
160
|
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
|
|
@@ -181,3 +187,7 @@ jobs:
|
|
|
181
187
|
releaseFiles: ${{ steps.android.outputs.bundle-path }}
|
|
182
188
|
tracks: ${{ vars.GOOGLE_PLAY_TRACK || 'internal' }}
|
|
183
189
|
status: ${{ vars.GOOGLE_PLAY_STATUS || 'completed' }}
|
|
190
|
+
# Localized release notes: commit distribution/whatsnew/whatsnew-<bcp47>
|
|
191
|
+
# files (e.g. whatsnew-en-US, whatsnew-de-DE) and they ship with every
|
|
192
|
+
# release. Empty when the directory is absent — the action skips it.
|
|
193
|
+
whatsNewDirectory: ${{ hashFiles('distribution/whatsnew/**') != '' && 'distribution/whatsnew' || '' }}
|