mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 05:05:44 +08:00
ci: Address code review feedback
- Fix grammatical error in Chinese text (release-info.md) - Use jq for reliable JSON parsing instead of grep with Perl regex - Improve error handling with clearer warning messages Co-authored-by: sj817 <74231782+sj817@users.noreply.github.com>
This commit is contained in:
parent
7105571ed7
commit
c615526142
2
.github/release-template/release-info.md
vendored
2
.github/release-template/release-info.md
vendored
@ -1,7 +1,7 @@
|
|||||||
[使用文档](https://napneko.github.io/)
|
[使用文档](https://napneko.github.io/)
|
||||||
|
|
||||||
## Windows 一键包
|
## Windows 一键包
|
||||||
我们为提供了的轻量化一键部署方案
|
我们提供了轻量化一键部署方案
|
||||||
相对于普通需要安装QQ的方案,下面已内置QQ和Napcat 阅读使用文档参考
|
相对于普通需要安装QQ的方案,下面已内置QQ和Napcat 阅读使用文档参考
|
||||||
|
|
||||||
你可以下载
|
你可以下载
|
||||||
|
|||||||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -138,10 +138,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Download Windows OneKey Packages
|
- name: Download Windows OneKey Packages
|
||||||
run: |
|
run: |
|
||||||
LATEST_RELEASE=$(curl -s https://api.github.com/repos/NapNeko/NapCatQQ/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')
|
# Get latest release tag using jq for reliable JSON parsing
|
||||||
|
LATEST_RELEASE=$(curl -s https://api.github.com/repos/NapNeko/NapCatQQ/releases/latest | jq -r '.tag_name')
|
||||||
echo "Latest release: $LATEST_RELEASE"
|
echo "Latest release: $LATEST_RELEASE"
|
||||||
curl -L -o NapCat.Shell.Windows.OneKey.zip "https://github.com/NapNeko/NapCatQQ/releases/download/$LATEST_RELEASE/NapCat.Shell.Windows.OneKey.zip" || echo "Shell OneKey not found, will skip"
|
|
||||||
curl -L -o NapCat.Framework.Windows.OneKey.zip "https://github.com/NapNeko/NapCatQQ/releases/download/$LATEST_RELEASE/NapCat.Framework.Windows.OneKey.zip" || echo "Framework OneKey not found, will skip"
|
# Download OneKey packages if they exist (non-zero exit code won't fail the step)
|
||||||
|
curl -f -L -o NapCat.Shell.Windows.OneKey.zip "https://github.com/NapNeko/NapCatQQ/releases/download/$LATEST_RELEASE/NapCat.Shell.Windows.OneKey.zip" || echo "Warning: NapCat.Shell.Windows.OneKey.zip not found in latest release"
|
||||||
|
curl -f -L -o NapCat.Framework.Windows.OneKey.zip "https://github.com/NapNeko/NapCatQQ/releases/download/$LATEST_RELEASE/NapCat.Framework.Windows.OneKey.zip" || echo "Warning: NapCat.Framework.Windows.OneKey.zip not found in latest release"
|
||||||
|
|
||||||
- name: Generate Release Notes
|
- name: Generate Release Notes
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user