Skip to content

ASF-WebConfigGenerator-translations #2056

ASF-WebConfigGenerator-translations

ASF-WebConfigGenerator-translations #2056

Workflow file for this run

name: ASF-WebConfigGenerator-translations
on:
schedule:
- cron: '5 2 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
update:
environment: dev-crowdin
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
show-progress: false
token: ${{ secrets.ARCHIBOT_GITHUB_TOKEN }}
- name: Download latest translations from Crowdin
uses: crowdin/github-action@ce33ce793a5cbc401d9cd748716e03fc90c001f1 # v2.15.2
with:
upload_sources: false
download_translations: true
skip_untranslated_strings: true
push_translations: false
crowdin_branch_name: main
config: '.github/crowdin.yml'
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
with:
gpg_private_key: ${{ secrets.ARCHIBOT_GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Commit and push the changes
shell: sh
run: |
set -eu
git add -A "src/locale"
if ! git diff --cached --quiet; then
git commit -m "Automatic translations update"
git push
fi