-
Notifications
You must be signed in to change notification settings - Fork 77
39 lines (33 loc) · 1.01 KB
/
i18n.yaml
File metadata and controls
39 lines (33 loc) · 1.01 KB
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
name: Check Internationalization
# Ensure that the .po files are up to date with any changes to the guide text
on:
pull_request:
push:
branches:
- main
jobs:
update-i18n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install Nox
run: python3 -m pip install nox
- name: Update .po files
run: nox -s update-release-languages
- name: Test for uncommitted changes
run: |
if [ -z "$(git status --porcelain)" ];
then
echo "No changes detected, translations are up to date!" >> $GITHUB_STEP_SUMMARY
exit 0
else
echo "Changes to .po files detected, please run 'nox -s update-translations' to reflect changes to source text" >> $GITHUB_STEP_SUMMARY
echo "$(git status)"
echo "$(git diff)"
exit 1
fi