-
-
Notifications
You must be signed in to change notification settings - Fork 16
40 lines (38 loc) · 1.11 KB
/
i18n-generator.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
38
39
40
name: Auto-i18n Generator
on:
workflow_dispatch:
push:
branches:
- development
paths-ignore:
- 'auto-i18n/result.csv'
jobs:
i18n-builder:
if: false == contains(github.event.commits[0].message, 'Update assets/locales/ja.json')
runs-on: ubuntu-22.04
steps:
- name: Checkout development branch
uses: actions/checkout@v4
with:
ref: development
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
working-directory: auto-i18n
- name: Run script
run: python i18n_generator.py
working-directory: auto-i18n
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update assets/locales/ja.json
title: Update translation files
labels: auto_merge
branch-suffix: 'short-commit-hash'