-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathadd-missing-translations.yaml
More file actions
39 lines (32 loc) · 1015 Bytes
/
add-missing-translations.yaml
File metadata and controls
39 lines (32 loc) · 1015 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
37
38
39
name: Add Missing Translations
on:
workflow_dispatch: {}
push:
paths:
- 'src/main/res/**' # corresponds to autoTranslate.translateStringsXml.resDirectory
- 'fastlane/metadata/**' # corresponds to autoTranslate.translateFastlane.metadataDirectory
permissions:
contents: write
jobs:
auto-translate:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Run Gradle autoTranslate
env:
AUTO_TRANSLATE_API_KEY: ${{ secrets.AUTO_TRANSLATE_API_KEY }}
run: ./gradlew autoTranslate
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Add missing translations