Skip to content

Crowdin Translations Sync #3

Crowdin Translations Sync

Crowdin Translations Sync #3

Workflow file for this run

name: Crowdin Translations Sync
on:
push:
branches:
- dev
paths:
- 'languages/parsedown-party.pot'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
action:
description: 'Action to perform'
type: choice
options:
- Pull Translations
- Seed Translations
default: Pull Translations
jobs:
upload-sources:
name: Upload Sources
if: github.event_name == 'push'
uses: pressbooks/reusable-workflows/.github/workflows/crowdin.yml@main
with:
action: upload
pot_file_path: languages/parsedown-party.pot
crowdin_branch_name: parsedown-party
base_branch: dev
secrets: inherit
download-translations:
name: Pull Translations
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'Pull Translations')
uses: pressbooks/reusable-workflows/.github/workflows/crowdin.yml@main
with:
action: download
pot_file_path: languages/parsedown-party.pot
languages_dir: languages/
crowdin_branch_name: parsedown-party
base_branch: dev
secrets: inherit
seed-translations:
name: Seed Translations
if: github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'Seed Translations'
uses: pressbooks/reusable-workflows/.github/workflows/crowdin.yml@main
with:
action: seed
pot_file_path: languages/parsedown-party.pot
languages_dir: languages/
crowdin_branch_name: parsedown-party
base_branch: dev
secrets: inherit