-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.43 KB
/
auto-translate.yaml
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
40
41
42
43
44
45
46
name: Auto-translate strings.xml
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
perform-auto-translate:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Translate strings.xml to supported languages
id: translate
uses: duartebarbosadev/Android-Resource-Translator@main
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: auto-translate # Fixed branch name
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: |
${{ steps.translate.outputs.translation_report }}
This pull request was automatically generated.
labels: "translation, automated pr"
assignees: "duartebarbosadev"
reviewers: "duartebarbosadev"