Tolgee CI #811
This file contains 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: 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: "" | |
asignees: marticliment | |
author: "Martí Climent <marticlilop@gmail.com>" | |
commit-message: | | |
Load updated translations from Tolgee | |
Co-authored-by: Martí Climent from the multiverse <121457539+martinet101@users.noreply.github.com> | |
branch: pull-request/update-translation |