cfg: allow to use array-only include/exclude (#466) #78
This file contains 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: Update translations on the main branch | |
on: | |
push: | |
paths: | |
- 'doc/**/*' | |
branches: | |
- master | |
jobs: | |
autocommit-pot-files: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python environment | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Setup Python requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r doc/requirements.txt | |
- name: Build pot files | |
run: python -m sphinx . doc/locale/en -c doc -b gettext | |
- name: Push Pot-files to crowdin | |
uses: crowdin/github-action@1.1.0 | |
with: | |
config: 'doc/crowdin.yaml' | |
upload_sources: true | |
upload_translations: true | |
import_eq_suggestions: true | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
CROWDIN_PERSONAL_TOKEN: ${{secrets.CROWDIN_PERSONAL_TOKEN}} |