-
-
Notifications
You must be signed in to change notification settings - Fork 484
37 lines (33 loc) · 1.08 KB
/
update-tolgee.yml
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
name: Tolgee CI
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
load-translations:
if: github.repository == 'marticliment/UniGetUI'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download Tolgee translations
env:
TOLGEE_KEY: "${{ secrets.TOLGEE_TOKEN }}"
run: |
cd scripts
python download_translations.py --autocommit
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
delete-branch: true
base: main
token: "${{ secrets.REPO_SCOPED_TOKEN }}"
labels: tolgee-ci
title: "Load translations from Tolgee"
body: ""
assignees: marticliment
author: "Martí Climent <[email protected]>"
commit-message: |
Load updated translations from Tolgee
Co-authored-by: Martí Climent from the multiverse <[email protected]>
branch: pull-request/update-translation