Fix translation download & Sync weekly instead of daily (#274)

This commit is contained in:
Michael Burgardt 2021-11-24 17:42:39 +01:00 committed by GitHub
parent c1c605e862
commit 4328cf4c07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 39402 additions and 36589 deletions

View File

@ -4,7 +4,7 @@ name: Crowdin Translation Integration
on:
schedule:
- cron: '10 15 * * *' # 3:10 PM, UTC
- cron: '10 15 * * 5' # Fridays at 3:10 PM, UTC
jobs:
create_intl_file:

View File

@ -11,5 +11,6 @@ except IndexError as e:
print('Please provide path to libretro_core_options.h, Crowdin API Token and core name!')
raise e
subprocess.run(['python3', 'intl/crowdin_prep.py', dir_path, core_name])
subprocess.run(['python3', 'intl/crowdin_translation_download.py', api_key, core_name])
subprocess.run(['python3', 'intl/crowdin_translate.py', dir_path, core_name])

View File

@ -85,11 +85,11 @@ if __name__ == '__main__':
workflow_config = workflow.read()
workflow_config = workflow_config.replace(
"subprocess.run(['python3', 'intl/core_option_translation.py', dir_path, core_name])",
"subprocess.run(['python3', 'intl/crowdin_translation_download.py', api_key, core_name])"
"subprocess.run(['python3', 'intl/crowdin_prep.py', dir_path, core_name])"
)
workflow_config = workflow_config.replace(
"subprocess.run(['python3', 'intl/initial_sync.py', api_key, core_name])\n",
""
"subprocess.run(['python3', 'intl/crowdin_translation_download.py', api_key, core_name])"
)
with open('intl/translation_workflow.py', 'w') as workflow:
workflow.write(workflow_config)

File diff suppressed because it is too large Load Diff