FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docs-de/.github/workflows/sync-check.yml at sync-upstream-3.14 · python/python-docs-de · GitHub
python
python-docs-de
Repository navigation
Code
Issues
Pull requests
2
(2)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python-docs-de
/
.github
/
workflows
/
sync-check.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
77 lines (67 loc) · 2.49 KB
Breadcrumbs
python-docs-de
/
.github
/
workflows
/
sync-check.yml
Copy path
File metadata and controls
77 lines (67 loc) · 2.49 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name
:
Sync Check with Upstream
on
:
schedule
:
-
cron
:
'
0 3 * * 1
'
#
jeden Montag um 3 Uhr nachts
workflow_dispatch
:
jobs
:
check-sync
:
runs-on
:
ubuntu-latest
strategy
:
fail-fast
:
false
matrix
:
version
:
['3.14', '3.15']
steps
:
-
name
:
Translation-Repo auschecken
uses
:
actions/checkout@v4
with
:
ref
:
${{ matrix.version }}
-
name
:
Passenden CPython-Branch auschecken
uses
:
actions/checkout@v4
with
:
repository
:
python/cpython
ref
:
${{ matrix.version }}
path
:
cpython-src
-
name
:
gettext installieren (für msgmerge)
run
:
sudo apt-get update && sudo apt-get install -y gettext
-
name
:
Python + Sphinx einrichten
run
:
|
python3 -m venv cpython-src/Doc/venv
cpython-src/Doc/venv/bin/pip install sphinx blurb
-
name
:
Frische POT-Dateien bauen
run
:
|
cd cpython-src/Doc
PATH="./venv/bin:$PATH" make gettext
-
name
:
powrap installieren (für einheitliche Zeilenumbrüche)
run
:
pip install --break-system-packages powrap
-
name
:
msgmerge gegen alle .po-Dateien laufen lassen
run
:
|
for pot in $(find cpython-src/Doc/build/gettext -name "*.pot"); do
rel="${pot#cpython-src/Doc/build/gettext/}"
po="${rel%.pot}.po"
if [ -f "$po" ]; then
msgmerge --quiet --update --backup=none "$po" "$pot"
else
mkdir -p "$(dirname "$po")"
msginit --no-translator --locale=de --input="$pot" --output-file="$po"
fi
powrap "$po"
done
-
name
:
Prüfen, ob sich etwas geändert hat
id
:
check
run
:
|
if [ -z "$(git status --porcelain)" ]; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
-
name
:
PR mit den Aktualisierungen erstellen
if
:
steps.check.outputs.changed == 'true'
uses
:
peter-evans/create-pull-request@v6
with
:
branch
:
sync-upstream-${{ matrix.version }}
base
:
${{ matrix.version }}
title
:
"
Sync mit Upstream-Änderungen (${{ matrix.version }})
"
body
:
|
Automatisch erkannte Änderungen im englischen Original-Quelltext.
Neue `fuzzy`-Markierungen und fehlende Strings bitte manuell prüfen.
commit-message
:
"
Sync mit Upstream-Änderungen (${{ matrix.version }})
"
Back
|
FazBrowse Home
|
New Git URL