Skip to content

Commit 012ad2d

Browse files
committed
ci: Add GitHub workflow to automatically sync translations every 2 weeks. [skip appveyor]
1 parent cc0db5c commit 012ad2d

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Sync Translations
2+
on:
3+
schedule:
4+
- cron: "28 18 6,20 * *"
5+
permissions:
6+
contents: write
7+
jobs:
8+
syncTranslations:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: crowdinSync
13+
env:
14+
crowdinAuthToken: ${{ secrets.CROWDIN_AUTH_TOKEN }}
15+
run: python3 ci/crowdinSync syncTranslations

ci/crowdinSync

-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ def downloadTranslations():
5757
shutil.copyfileobj(r.raw, open(TMP_DOWNLOAD_PATH, "wb"))
5858

5959
def syncTranslations():
60-
print("Pulling from GitHub")
61-
subprocess.check_call(("git", "pull"))
6260
downloadTranslations()
6361
print("Extracting translations")
6462
with zipfile.ZipFile(TMP_DOWNLOAD_PATH) as zf:

0 commit comments

Comments
 (0)