FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docs-de/.github/workflows/po-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
/
po-check.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
43 lines (34 loc) · 1.01 KB
Breadcrumbs
python-docs-de
/
.github
/
workflows
/
po-check.yml
Copy path
File metadata and controls
43 lines (34 loc) · 1.01 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
name
:
Check PO Syntax & Auto-Wrap
on
:
push
:
branches
:
[ "**" ]
workflow_dispatch
:
permissions
:
contents
:
write
jobs
:
format-and-check
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Code
uses
:
actions/checkout@v5
with
:
fetch-depth
:
0
-
name
:
Set up Python
uses
:
actions/setup-python@v6
with
:
python-version
:
"
3.x
"
-
name
:
Install gettext & powrap
run
:
|
sudo apt-get update && sudo apt-get install -y gettext
pip install powrap
-
name
:
Auto-wrap PO files to 80 characters
run
:
|
find . -name "*.po" -exec powrap --quiet {} +
-
name
:
Commit & Push formatted PO files
uses
:
stefanzweifel/git-auto-commit-action@v6
with
:
commit_message
:
"
Auto-format PO files to 80 chars [skip ci]
"
file_pattern
:
"
*.po
"
-
name
:
Validate PO syntax with msgfmt
run
:
|
find . -name "*.po" -exec msgfmt --check --check-format -o /dev/null {} \;
Back
|
FazBrowse Home
|
New Git URL