Skip to content

Commit cd32e55

Browse files
committed
MAINTENANCE: Scheduled cron job for crowdin uploads on Crowdin using crowdin apiv1
1 parent bc0b942 commit cd32e55

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: scheduled-upload-crowdin
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
ref: develop
14+
- name: Upload Strings to Crowdin
15+
env:
16+
CROWDIN_KEY: ${{ secrets.CROWDIN_API }}
17+
run: 'curl -F "files[catroid/src/main/res/values/strings.xml]=@catroid/src/main/res/values/strings.xml"
18+
-F "export_patterns[catroid/src/main/res/values/strings.xml]=catroid/src/main/res/values-%android_code%/%original_file_name%"
19+
-F "titles[catroid/src/main/res/values/strings.xml]=Pocket Code for Android" "https://api.crowdin.com/api/project/catrobat/update-file?key="$CROWDIN_KEY'

0 commit comments

Comments
 (0)