File tree 3 files changed +12
-7
lines changed
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,17 @@ jobs:
26
26
- name : Sync with CPython
27
27
run : make clone && make merge && make rm_cpython
28
28
29
+ - uses : tibdex/github-app-token@v1
30
+ id : generate-token
31
+ with :
32
+ app_id : ${{ secrets.APP_ID }}
33
+ private_key : ${{ secrets.APP_PRIVATE_KEY }}
34
+
29
35
- name : Create Pull Request
30
36
id : cpr
31
37
uses : peter-evans/create-pull-request@v3
32
38
with :
39
+ token : ${{ steps.generate-token.outputs.token }}
33
40
commit-message : sync with cpython ${{ env.LATEST_COMMIT_ID }}
34
41
committer : GitHub <noreply@github.com>
35
42
author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@@ -39,12 +46,10 @@ jobs:
39
46
title : ' Sync with CPython ${{ env.VERSION }}'
40
47
body : |
41
48
Sync with CPython ${{ env.VERSION }}
49
+ draft : true
42
50
labels : |
43
51
sync-cpython
44
52
automation
45
- team-reviewers : |
46
- owners
47
- maintainers
48
53
49
54
- name : Check outputs
50
55
run : |
Original file line number Diff line number Diff line change @@ -84,11 +84,11 @@ endif
84
84
if [ -f "$$PO" ];\
85
85
then\
86
86
case "$$POT" in\
87
- *whatsnew*) msgmerge --backup=off --force-po --no-fuzzy-matching -U "$$PO" "$$POT" ;;\
88
- *) msgmerge --backup=off --force-po -U "$$PO" "$$POT" ;;\
87
+ *whatsnew*) msgmerge --lang=$(LANGUAGE) -- backup=off --force-po --no-fuzzy-matching -U "$$PO" "$$POT" ;;\
88
+ *) msgmerge --lang=$(LANGUAGE) -- backup=off --force-po -U "$$PO" "$$POT" ;;\
89
89
esac\
90
90
else\
91
- msgcat -o "$$PO" "$$POT";\
91
+ msgcat --lang=$(LANGUAGE) - o "$$PO" "$$POT";\
92
92
fi\
93
93
done
94
94
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Python 官方說明文件臺灣繁體中文翻譯計畫
10
10
11
11
翻譯之前,請務必詳讀並同意\ `授權與 License `_。參與方式請參考\ `參加翻譯 `_。
12
12
13
- 您可以在 https://python-doc-tw .github.io/ 瀏覽目前翻譯的成果。
13
+ 您可以在 https://python.github.io/python-docs-zh-tw / 瀏覽目前翻譯的成果。
14
14
15
15
想問問題、認識翻譯同好,歡迎加入 Telegram 聊天室 `t.me/PyDocTW `_
16
16
You can’t perform that action at this time.
0 commit comments