FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docs-zh-tw/.github/workflows/py314-sync-cpython.yml at 3.14 · python/python-docs-zh-tw · GitHub
python
python-docs-zh-tw
Repository navigation
Code
Issues
33
(33)
Pull requests
12
(12)
Discussions
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-docs-zh-tw
/
.github
/
workflows
/
py314-sync-cpython.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
67 lines (57 loc) · 1.92 KB
Breadcrumbs
python-docs-zh-tw
/
.github
/
workflows
/
py314-sync-cpython.yml
Copy path
File metadata and controls
67 lines (57 loc) · 1.92 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
name
:
python-3.14-sync-with-cpython
on
:
push
:
branches
:
-
"
3.14
"
schedule
:
-
cron
:
"
0 0 * * *
"
jobs
:
sync
:
runs-on
:
ubuntu-latest
env
:
VERSION
:
"
3.14
"
BRANCH
:
"
cron/sync/3.14
"
steps
:
-
uses
:
actions/checkout@v6
with
:
ref
:
${{ env.VERSION }}
-
name
:
Get the changes on branch (if exists)
continue-on-error
:
true
run
:
|
git fetch origin ${{ env.BRANCH }}:${{ env.BRANCH }}
git reset --hard ${{ env.BRANCH }}
-
name
:
Set env
run
:
echo "LATEST_COMMIT_ID=$(git ls-remote https://github.com/python/CPython.git $VERSION | head -c 8)" >> $GITHUB_ENV
-
name
:
Install Dependencies
run
:
sudo apt-get install gettext
-
name
:
Install uv
uses
:
astral-sh/setup-uv@v7
-
name
:
Sync with CPython
run
:
make clone merge rm_cpython wrap
-
uses
:
actions/create-github-app-token@v3
id
:
app-token
with
:
app-id
:
${{ secrets.APP_ID }}
private-key
:
${{ secrets.APP_PRIVATE_KEY }}
-
name
:
Create Pull Request
id
:
cpr
uses
:
peter-evans/create-pull-request@v8
with
:
token
:
${{ steps.app-token.outputs.token }}
commit-message
:
sync with cpython ${{ env.LATEST_COMMIT_ID }}
committer
:
GitHub <noreply@github.com>
author
:
github-actions[bot] <github-actions[bot]@users.noreply.github.com>
base
:
${{ env.VERSION }}
branch
:
${{ env.BRANCH }}
delete-branch
:
false
title
:
"
Sync with CPython ${{ env.VERSION }}
"
body
:
|
Sync with CPython ${{ env.VERSION }}
draft
:
true
labels
:
|
sync-cpython
automation
-
name
:
Check outputs
run
:
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
Back
|
FazBrowse Home
|
New Git URL