Skip to content

Commit 26edf38

Browse files
authored
Merge pull request #198 from Scientific-Python-Translations/goanpeca-patch-1
Create sync_translations.yml
2 parents d7aa928 + 392bbfd commit 26edf38

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Sync Translations
2+
on:
3+
#schedule:
4+
# - cron: '0 12 * * MON' # Every Monday at noon
5+
workflow_dispatch:
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Sync Xarray translations
11+
uses: Scientific-Python-Translations/translations-sync@main
12+
with:
13+
# Provided by user
14+
crowdin-project: "Xarray"
15+
source-repo: "xarray-contrib/xarray.dev"
16+
source-path: "content/en/"
17+
source-ref: "main"
18+
translations-repo: "Scientific-Python-Translations/xarray-website-translations"
19+
translations-path: "content/"
20+
translations-source-path: "content/en/"
21+
translations-ref: "main"
22+
translation-percentage: "90"
23+
approval-percentage: "0"
24+
use-precommit: "flase"
25+
create-toml-file: "false"
26+
create-upstream-pr: "false"
27+
auto-merge: "false"
28+
# Provided by organization secrets
29+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
30+
passphrase: ${{ secrets.PASSPHRASE }}
31+
token: ${{ secrets.TOKEN }}
32+
crowdin-token: ${{ secrets.CROWDIN_TOKEN }}

0 commit comments

Comments
 (0)