File: i18n.yml

package info (click to toggle)
python-djangorestframework-simplejwt 5.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 992 kB
  • sloc: python: 3,819; makefile: 213; javascript: 40; sh: 6
file content (48 lines) | stat: -rw-r--r-- 1,239 bytes parent folder | download | duplicates (2)
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
48
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
        working-directory:
          rest_framework_simplejwt
        run: python ../scripts/i18n_updater.py

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v7
        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