-
Notifications
You must be signed in to change notification settings - Fork 53
40 lines (34 loc) · 1.05 KB
/
translations.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: Translations
on:
push:
branches:
- master
jobs:
update_po:
name: Update language files
runs-on: ubuntu-latest
defaults:
run:
shell: bash -eo pipefail {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: sudo apt-get install -qy gettext
- run: ./lang/report.sh | tee before.tsv | column -t
- run: make -BC lang
- run: ./lang/report.sh | tee after.tsv | column -t
- run: .github/pr_text.py | tee summary.md
- run: |
echo >>$GITHUB_OUTPUT "summary<<EOS_SUMMARY"
cat >>$GITHUB_OUTPUT <summary.md
echo >>$GITHUB_OUTPUT "EOS_SUMMARY"
id: report
- run: rm before.tsv after.tsv summary.md
- uses: peter-evans/create-pull-request@v7
with:
branch: ${{ github.ref_name }}_langfiles
commit-message: Update language files
title: Update language files on ${{ github.ref_name }}
body: ${{ steps.report.outputs.summary }}