2021-06-13 12:15:21 +00:00
|
|
|
name: Crowdin Action
|
|
|
|
# Controls when the action will run.
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '43 * * * *'
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
|
|
jobs:
|
|
|
|
# This workflow contains a single job called "build"
|
|
|
|
synchronize-with-crowdin:
|
2023-08-17 18:06:27 +00:00
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'joomla-extensions/patchtester') || (github.event_name != 'schedule')
|
2021-06-13 12:15:21 +00:00
|
|
|
# The type of runner that the job will run on
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
|
|
steps:
|
|
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
|
|
- name: Checkout
|
2023-08-17 18:18:30 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-06-13 12:15:21 +00:00
|
|
|
|
|
|
|
# Runs the Crowdin action command - https://github.com/crowdin/github-action
|
|
|
|
- name: crowdin action
|
2023-08-13 20:19:27 +00:00
|
|
|
uses: crowdin/github-action@v1.10.0
|
2021-06-13 12:15:21 +00:00
|
|
|
with:
|
|
|
|
# Upload sources to Crowdin
|
|
|
|
upload_sources: true
|
|
|
|
# Upload translations to Crowdin, only use true at initial run
|
2021-06-15 20:48:09 +00:00
|
|
|
upload_translations: false
|
2021-06-13 12:15:21 +00:00
|
|
|
# Make pull request of Crowdin translations
|
2021-06-15 20:48:09 +00:00
|
|
|
download_translations: true
|
2021-06-13 12:15:21 +00:00
|
|
|
# Only download translated strings
|
|
|
|
skip_untranslated_strings: false
|
|
|
|
# Download translations with pushing to branch
|
|
|
|
push_translations: true
|
|
|
|
# To download translations to the specified version branch
|
|
|
|
localization_branch_name: 'l10n_crowdin_translations'
|
|
|
|
# Create pull request after pushing to branch
|
|
|
|
create_pull_request: true
|
|
|
|
# Configuration file to use
|
|
|
|
config: 'crowdin.yml'
|
|
|
|
# Use true for dryrun to test the run without actually processing anything
|
2021-06-15 20:30:03 +00:00
|
|
|
dryrun_action: false
|
2021-06-13 12:15:21 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|