Skip to content

Commit

Permalink
Created/Implemented Auto translate bot
Browse files Browse the repository at this point in the history
  • Loading branch information
duartebarbosadev committed Feb 10, 2025
1 parent c49810a commit 6f4f132
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/auto-translate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:

perform-auto-translate:

runs-on: ubuntu-latest
timeout-minutes: 15

Expand All @@ -22,25 +20,29 @@ jobs:
uses: actions/checkout@v4

- name: Translate strings.xml to supported languages
#uses: duartebarbosadev/Android-String-Translator@v1.0.0-alpha
uses: duartebarbosadev/Android-String-Translator@main
#with:
# Adjust the project_path if your Android resource files are elsewhere.
#project_path: "./app/src/main/res"
#auto_translate: "true"
#validate_translations: "false"
#log_trace: "false"
#env:
#OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: [Translate Bot] Auto-generated translations for non-English languages
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
signoff: false
title: '[Translate Bot] Auto-generated translations for non-English languages'
commit-message: "[Translate Bot] Auto-generated translations for non-English languages"
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
author: "${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>"
signoff: "false"
title: "[Translate Bot] Auto-generated translations for non-English languages"
body: |
Auto generated translations
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
labels: |
translation
automated pr
assignees: duartebarbosadev
reviewers: duartebarbosadev

labels: "translation, automated pr"
assignees: "duartebarbosadev"
reviewers: "duartebarbosadev"

0 comments on commit 6f4f132

Please sign in to comment.