Skip to content

J4Landing Upload and Download #19487

J4Landing Upload and Download

J4Landing Upload and Download #19487

name: J4Landing Upload and Download
# Controls when the action will run.
on:
schedule:
- cron: '30 * * * *'
# 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:
if: (github.event_name == 'schedule' && github.repository == 'joomla/joomla.org') || (github.event_name != 'schedule')
# 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
uses: actions/checkout@v4
# Runs the Crowdin action command - https://github.com/crowdin/github-action
- name: crowdin action
uses: crowdin/[email protected]
with:
# Upload sources to Crowdin
upload_sources: true
# Upload translations to Crowdin, only use true at initial run
upload_translations: false
# Make pull request of Crowdin translations
download_translations: true
# Only download translated strings
skip_untranslated_strings: false
# Include approved translations only in exported files.
# If not combined with --skip-untranslated-strings option, strings without approval are fulfilled with the source language'
export_only_approved: true
# 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-conf-j4landing.yml'
# Use true for dryrun to test the run without actually processing anything
dryrun_action: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}