Check for l10n updates #4491
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
# https://crontab.guru/crontab.5.html | |
name: Check for l10n updates | |
on: | |
workflow_dispatch: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '1 * * * *' # Once every hour (minute 1) | |
jobs: | |
update-translations: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v4.2.1 | |
- name: Get repository name | |
id: getRepoName | |
uses: actions/github-script@v7.0.1 | |
with: | |
script: return context.repo.repo | |
result-encoding: string | |
- name: Push changes | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email github-actions@github.com | |
git remote add l10n https://github.com/nvdaaddons/${{ steps.getRepoName.outputs.result }} | |
git fetch l10n | |
git reset l10n/stable addon/doc addon/locale | |
git commit -m "Update translations" | |
git pull | |
git push | |