Crowdin Translations Sync #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |