ruffle/.github/workflows/download_translations.yml

39 lines
1.3 KiB
YAML
Raw Normal View History

2023-05-16 17:47:09 +00:00
name: Download translations from Crowdin
on:
schedule:
- cron: '0 21 * * *'
jobs:
crowdin:
runs-on: ubuntu-latest
if: github.repository == 'ruffle-rs/ruffle'
2023-05-16 17:47:09 +00:00
strategy:
max-parallel: 1
steps:
- name: Checkout
uses: actions/checkout@v4
2023-05-16 17:47:09 +00:00
- name: Crowdin push
uses: crowdin/github-action@v2
2023-05-16 17:47:09 +00:00
with:
config: 'crowdin.yml'
upload_sources: false
upload_translations: false
download_translations: true
localization_branch_name: l10n_crowdin_translations
create_pull_request: true
pull_request_title: 'chore: Update translations'
pull_request_body: 'New Crowdin pull request with translations'
pull_request_labels: 'localization'
pull_request_base_branch_name: 'master'
commit_message: 'chore: Update translations from Crowdin'
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
# Use a custom token rather than the automatic GITHUB_TOKEN, as the automatic one doesn't allow created PRs to trigger workflows
# By using our own token (and thus own user), workflows will run, and the PR will be able to be merged.
GITHUB_TOKEN: ${{ secrets.RUFFLE_BUILD_TOKEN }}