Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9c34230

Browse files
authored
Merge pull request#108 from mattwang44/improve-github-action
Improve GitHub action workflows
2 parents9630419 +212beef commit9c34230

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

‎.github/workflows/py39-sync-cpython.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,17 @@ jobs:
2626
-name:Sync with CPython
2727
run:make clone && make merge && make rm_cpython
2828

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+
2935
-name:Create Pull Request
3036
id:cpr
3137
uses:peter-evans/create-pull-request@v3
3238
with:
39+
token:${{ steps.generate-token.outputs.token }}
3340
commit-message:sync with cpython ${{ env.LATEST_COMMIT_ID }}
3441
committer:GitHub <noreply@github.com>
3542
author:github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@@ -39,12 +46,10 @@ jobs:
3946
title:'Sync with CPython ${{ env.VERSION }}'
4047
body:|
4148
Sync with CPython ${{ env.VERSION }}
49+
draft:true
4250
labels:|
4351
sync-cpython
4452
automation
45-
team-reviewers:|
46-
owners
47-
maintainers
4853
4954
-name:Check outputs
5055
run:|

‎Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ endif
8484
if [ -f "$$PO" ];\
8585
then\
8686
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" ;;\
8989
esac\
9090
else\
91-
msgcat -o "$$PO" "$$POT";\
91+
msgcat --lang=$(LANGUAGE) -o "$$PO" "$$POT";\
9292
fi\
9393
done
9494

‎README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Python 官方說明文件臺灣繁體中文翻譯計畫
1010

1111
翻譯之前,請務必詳讀並同意\`授權與 License`_。參與方式請參考\`參加翻譯`_。
1212

13-
您可以在 https://python-doc-tw.github.io/ 瀏覽目前翻譯的成果。
13+
您可以在 https://python.github.io/python-docs-zh-tw/ 瀏覽目前翻譯的成果。
1414

1515
想問問題、認識翻譯同好,歡迎加入 Telegram 聊天室 `t.me/PyDocTW`_
1616

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp