gowalk-cicd 1.0.180 → 1.0.181
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.
|
@@ -22,7 +22,8 @@ Non-fatal by design: any failure is reported as a ::warning:: and the action
|
|
|
22
22
|
continues. The TestFlight upload itself has already succeeded by this point.
|
|
23
23
|
|
|
24
24
|
Environment:
|
|
25
|
-
ASC_KEY_ID, ASC_ISSUER_ID
|
|
25
|
+
ASC_KEY_ID, ASC_ISSUER_ID -- App Store Connect API identity
|
|
26
|
+
ASC_KEY_PATH / ASC_KEY_P8_PATH -- existing or prepared key-file path
|
|
26
27
|
MARKETING_VERSION -- e.g. "1.2.3"
|
|
27
28
|
APP_STORE_VERSION_ID -- appStoreVersion id (REUSE or CREATE)
|
|
28
29
|
APP_STORE_WHATS_NEW_FILE -- path to file holding release notes
|
|
@@ -228,16 +229,10 @@ def _update_all_localizations(
|
|
|
228
229
|
token: str, version_id: str, version: str, whats_new: str, seed_locale: str,
|
|
229
230
|
only_if_empty: bool = False,
|
|
230
231
|
) -> int:
|
|
231
|
-
"""
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
When ``only_if_empty`` is set the text is a fallback backstop: any
|
|
236
|
-
localization that already has a non-blank whatsNew (e.g. notes a human
|
|
237
|
-
entered) is left untouched, and only empty ones are filled. This lets the
|
|
238
|
-
step run unconditionally without clobbering good content, while still
|
|
239
|
-
guaranteeing no locale ships with an empty "What's New" (which App Store
|
|
240
|
-
Connect rejects as "This field is required")."""
|
|
232
|
+
"""Write localized notes, creating one seed when no localizations exist.
|
|
233
|
+
Return the count written. ``only_if_empty`` preserves existing non-blank
|
|
234
|
+
notes and fills the empty text App Store Connect requires before review.
|
|
235
|
+
"""
|
|
241
236
|
locs = get_json(
|
|
242
237
|
f"/appStoreVersions/{version_id}/appStoreVersionLocalizations", token
|
|
243
238
|
)
|
|
@@ -306,7 +301,7 @@ def main() -> int:
|
|
|
306
301
|
token = make_jwt(
|
|
307
302
|
_require_env("ASC_KEY_ID"),
|
|
308
303
|
_require_env("ASC_ISSUER_ID"),
|
|
309
|
-
|
|
304
|
+
os.environ.get("ASC_KEY_PATH", "").strip() or _require_env("ASC_KEY_P8_PATH"),
|
|
310
305
|
)
|
|
311
306
|
|
|
312
307
|
ver = get_json(f"/appStoreVersions/{version_id}", token)
|