Skip to content

Locale Sync Check

Locale Sync Check #59

name: Locale Sync Check
on:
schedule:
- cron: "0 0 * * *" # Runs every 24 hours at midnight UTC
workflow_dispatch: # Allow manual run
permissions:
issues: write
jobs:
locale-sync-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
working-directory: frontend
run: npm ci
- name: Run locale sync check
working-directory: frontend
# Don't fail the workflow on sync issues - just report them
# The script creates GitHub issues for tracking
run: npm run local-sync-check || echo "Locale sync issues found - see created issues"
- name: Add native speaker warning to locale-sync issues
run: bash scripts/add-locale-warning.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_EVENT_PATH: ${{ github.event_path }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}