diff --git a/ftl/sync.py b/ftl/sync.py index 0696d99f6..0f27ec3f4 100644 --- a/ftl/sync.py +++ b/ftl/sync.py @@ -117,16 +117,16 @@ def update_repos_bzl(): out.append(line) open(path, "w").writelines(out) - commit_if_changed(root) + commit_if_changed(root, update_label="translations") -def commit_if_changed(folder: str): +def commit_if_changed(folder: str, update_label: str): status = subprocess.run(["git", "diff", "--exit-code"], cwd=folder, check=False) if status.returncode == 0: # no changes return subprocess.run( - ["git", "commit", "-a", "-m", "update translations"], cwd=folder, check=True + ["git", "commit", "-a", "-m", "update " + update_label], cwd=folder, check=True ) @@ -147,7 +147,7 @@ def update_ftl_templates(): ], check=True, ) - commit_if_changed(module.folder()) + commit_if_changed(module.folder(), update_label="templates") def push_i18n_changes(): diff --git a/repos.bzl b/repos.bzl index 3f8b433bd..bb0aae81d 100644 --- a/repos.bzl +++ b/repos.bzl @@ -132,8 +132,8 @@ def register_repos(): ################ core_i18n_repo = "anki-core-i18n" - core_i18n_commit = "3787f06947296f7ceee9c36000d9bf2176fbf8cf" - core_i18n_zip_csum = "ff78d92f4b88821778c7b7e50baab705dc2e6fef46cd355fcd8a527f248bf9d6" + core_i18n_commit = "e54034616bf0cdfa158ce78b1824b38144df6857" + core_i18n_zip_csum = "3452b4b35d4058ff588f84644409ec204cbf58ae0c42974a713b21c2f00b40c9" qtftl_i18n_repo = "anki-desktop-ftl" qtftl_i18n_commit = "881103198f1e3603c297bf449acb819f027442e6"