-
Notifications
You must be signed in to change notification settings - Fork 670
47 lines (39 loc) · 1.15 KB
/
i18n.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
41
42
43
44
45
46
47
name: Update locale files
on:
push:
branches:
- main
- master
jobs:
locale-updater:
permissions:
pull-requests: write
contents: write
if: github.repository == 'jazzband/djangorestframework-simplejwt'
name: Locale updater
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: setup.py
- name: Install dependencies
run: |
sudo apt-get install -y gettext
python -m pip install --upgrade pip wheel setuptools
pip install -e .[dev]
- name: Run locale Update Script
run: python scripts/i18n_updater.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: i18n-auto-update
title: "[i18n] Update"
body: "Updated locale files on trunk"
commit-message: "Update locale files"
add-paths: rest_framework_simplejwt/locale/**
delete-branch: true