mirror of
https://github.com/libretro/Genesis-Plus-GX.git
synced 2024-11-27 02:20:39 +00:00
Fix translation download & Sync weekly instead of daily (#274)
This commit is contained in:
parent
c1c605e862
commit
4328cf4c07
2
.github/workflows/crowdin_translate.yml
vendored
2
.github/workflows/crowdin_translate.yml
vendored
@ -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:
|
||||
|
@ -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])
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user