Created
September 3, 2025 23:52
-
-
Save sarimmehdi/404ac819e99dc5cbe14e0cfe11562e0e to your computer and use it in GitHub Desktop.
ci cd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Translations | |
on: | |
push: | |
paths: | |
- '**/src/main/res/values/strings.xml' | |
jobs: | |
translate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
- name: Generate Translations | |
run: ./gradlew generateProjectTranslations | |
- name: Commit Translations | |
run: | | |
git config --local user.email "[email protected]" | |
git add . | |
git commit -m "Auto-generated translations" || exit 0 | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment