mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
fix: 修复发布脚本获取最新版本标签
不确定是否修好了,只能下次发布预览版再验证
This commit is contained in:
parent
2b5c715d2b
commit
19a964195c
1 changed files with 1 additions and 1 deletions
|
|
@ -59,8 +59,8 @@ try:
|
|||
# 发布预发行版与最新的版本(无论是正式版还是预发行版)对比
|
||||
response = requests.get(
|
||||
f"https://api.github.com/repos/{repo}/releases",
|
||||
json={"per_page": 1},
|
||||
headers=headers,
|
||||
params={"per_page": 1}
|
||||
)
|
||||
if response.ok:
|
||||
prevReleaseTag = response.json()[0]["tag_name"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue