-
-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (29 loc) · 970 Bytes
/
checkForTranslations.yaml
File metadata and controls
36 lines (29 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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@v6.0.1
- name: Get repository name
id: getRepoName
uses: actions/github-script@v8.0.0
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