From 01c911e178623d855cc9850a3f9043c0b518c4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 14 Nov 2025 13:02:16 +0800 Subject: [PATCH] Add workflows to trigger NapCat release builds Introduces two new GitHub Actions jobs: one to trigger NapCat AppImage builds and another for NapCat Linux Node Loader releases. Both jobs fetch the latest NapCat version tag and use fixed QQ AppImage URLs for x86_64 and arm64 architectures. --- .github/workflows/trigger-docker-publish.yml | 54 +++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/.github/workflows/trigger-docker-publish.yml b/.github/workflows/trigger-docker-publish.yml index c3c6412c..1216ac5e 100644 --- a/.github/workflows/trigger-docker-publish.yml +++ b/.github/workflows/trigger-docker-publish.yml @@ -28,4 +28,56 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer $GH_TOKEN" \ https://api.github.com/repos/NapNeko/NapCat.Docker.Framework/actions/workflows/docker-image.yml/dispatches \ - -d '{"ref":"main"}' \ No newline at end of file + -d '{"ref":"main"}' + appimage-shell-docker: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Get Latest NapCat Version + id: get_version + run: | + # 获取当前仓库的最新 tag + latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1)) + # 输出调试信息 + echo "Debug: Latest NapCat Version is ${latest_tag}" + echo "latest_tag=${latest_tag}" >> $GITHUB_ENV + - name: Trigger Release NapCat AppImage Workflow + env: + GH_TOKEN: ${{ secrets.NAPCAT_BUILD }} + NAPCAT_VERSION: ${{ env.latest_tag }} + QQ_VERSION_X86_64: 'https://dldir1v6.qq.com/qqfile/qq/QQNT/8015ff90/linuxqq_3.2.21-42086_x86_64.AppImage' # 写死 QQ 版本 + QQ_VERSION_ARM64: 'https://dldir1v6.qq.com/qqfile/qq/QQNT/8015ff90/linuxqq_3.2.21-42086_arm64.AppImage' # 写死 QQ 版本 + run: | + echo "Debug: Triggering Release NapCat AppImage with napcat_version=${NAPCAT_VERSION}, qq_version_x86_64=${QQ_VERSION_X86_64}, qq_version_arm64=${QQ_VERSION_ARM64}" + curl -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $GH_TOKEN" \ + https://api.github.com/repos/NapNeko/NapCatAppImageBuild/actions/workflows/release.yml/dispatches \ + -d "{\"ref\":\"main\",\"inputs\":{\"napcat_version\":\"${NAPCAT_VERSION}\",\"qq_version_x86_64\":\"${QQ_VERSION_X86_64}\",\"qq_version_arm64\":\"${QQ_VERSION_ARM64}\"}}" + trigger-napcat-release: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Get Latest NapCat Version + id: get_version + run: | + # 获取当前仓库的最新 tag + latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1)) + # 输出调试信息 + echo "Debug: Latest NapCat Version is ${latest_tag}" + echo "latest_tag=${latest_tag}" >> $GITHUB_ENV + - name: Trigger Release NapCat AppImage Workflow + env: + GH_TOKEN: ${{ secrets.NAPCAT_BUILD }} + NAPCAT_VERSION: ${{ env.latest_tag }} + QQ_VERSION_X86_64: 'https://dldir1v6.qq.com/qqfile/qq/QQNT/8015ff90/linuxqq_3.2.21-42086_x86_64.AppImage' # 写死 QQ 版本 + QQ_VERSION_ARM64: 'https://dldir1v6.qq.com/qqfile/qq/QQNT/8015ff90/linuxqq_3.2.21-42086_arm64.AppImage' # 写死 QQ 版本 + run: | + echo "Debug: Triggering Release NapCat AppImage with napcat_version=${NAPCAT_VERSION}, qq_url_amd64=${QQ_VERSION_X86_64}, qq_url_arm64=${QQ_VERSION_ARM64}" + curl -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $GH_TOKEN" \ + https://api.github.com/repos/NapNeko/NapCatLinuxNodeLoader/actions/workflows/release.yml/dispatches \ + -d "{\"ref\":\"main\",\"inputs\":{\"napcat_version\":\"${NAPCAT_VERSION}\",\"qq_url_amd64\":\"${QQ_VERSION_X86_64}\",\"qq_url_arm64\":\"${QQ_VERSION_ARM64}\"}}" \ No newline at end of file