FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docs-fa/.github/workflows/maintenance.yml at 3.15 · python/python-docs-fa · GitHub
python
python-docs-fa
Repository navigation
Code
Issues
8
(8)
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-docs-fa
/
.github
/
workflows
/
maintenance.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
72 lines (58 loc) · 2.11 KB
Breadcrumbs
python-docs-fa
/
.github
/
workflows
/
maintenance.yml
Copy path
File metadata and controls
72 lines (58 loc) · 2.11 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
name
:
Scheduled Maintenance
on
:
schedule
:
#
Runs after the 04:00 CPython sync so the status table and headers
#
reflect today's msgids instead of yesterday's.
-
cron
:
'
0 5 * * *
'
workflow_dispatch
:
{}
permissions
:
contents
:
write
issues
:
write
pull-requests
:
read
#
Shared with sync-cpython.yml so the two never push at the same time.
concurrency
:
group
:
repo-writes
cancel-in-progress
:
false
jobs
:
maintenance
:
runs-on
:
ubuntu-latest
timeout-minutes
:
30
steps
:
-
uses
:
actions/checkout@v4
with
:
fetch-depth
:
0
#
needed if team_stats/contributor_chart read git history
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.12
'
-
name
:
Install dependencies
run
:
pip install polib matplotlib
-
name
:
Update translation status table
run
:
python3 scripts/generate_status_table.py
-
name
:
Update PO file headers
run
:
python3 scripts/update_po_headers.py --merge --no-last-translator
-
name
:
Update TEAM.md contributor counts
run
:
python3 scripts/team_stats.py --update-teammd
-
name
:
Update contributor chart and README stats block
run
:
python3 scripts/contributor_chart.py
-
name
:
Update master issue with pending review items
env
:
GH_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
MASTER_ISSUE
:
'
83
'
run
:
python3 scripts/update_master_issue.py
-
name
:
Stage changes
run
:
git add --all
#
Drops .po files whose only change is POT-Creation-Date.
-
name
:
Unstage POT-Creation-Date-only changes
run
:
python3 scripts/unstage_cosmetic.py
-
name
:
Commit and push if changed
run
:
|
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if git diff --staged --quiet; then
echo "No changes to commit"
exit 0
fi
git commit -m "chore: update translation status, PO headers, team credits, and contributor chart"
git pull --rebase
git push
Back
|
FazBrowse Home
|
New Git URL