Skip to content

Check translations #578

Check translations

Check translations #578

name: Check translations
on:
schedule:
- cron: '0 12 */2 * *' # run every 2 days
jobs:
update-translations:
runs-on: ubuntu-latest
steps:
- name: Checkout sources from main branch
uses: actions/checkout@v3
with:
ref: main
# persist composer's internal cache directory to reduce the workflow execution time
- name: Get Composer cache directory
id: composer-cache
run: |
dir="$(composer config cache-files-dir)"
echo "dir=$dir" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: |
composer install
- name: Check missing translations
run: |
php bin/console translation:check-missing en zikula