From 1fbcc36bb8bd8c51a544fb9587b81017a01b2cdc Mon Sep 17 00:00:00 2001 From: juewuy Date: Mon, 22 Jan 2024 14:22:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0singbox=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=89=88actions=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_singbox_core_test.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_singbox_core_test.yaml b/.github/workflows/update_singbox_core_test.yaml index ee6c6a0c2..000ca5957 100644 --- a/.github/workflows/update_singbox_core_test.yaml +++ b/.github/workflows/update_singbox_core_test.yaml @@ -116,13 +116,15 @@ jobs: done rm -fr upx* rm -fr ./tmp/core.tar.gz - echo ${{ github.event.inputs.tag2 }} > ./tmp/version + version=$(./bin/singbox/singbox-linux-amd64 version 2>/dev/null | grep version | awk '{print $3}') + echo $version > ./tmp/version + echo "version=${version}" >> ${GITHUB_ENV} - name: Create Release and Upload Release Asset uses: softprops/action-gh-release@v1 with: tag_name: singbox_core${{ github.event.inputs.tag3 }} name: singbox_core${{ github.event.inputs.tag3 }} - body: "The ${{ github.event.inputs.tag2 }} version of ${{ github.event.inputs.tag1 }} \n这是${{ github.event.inputs.tag1 }}的${{ github.event.inputs.tag2 }}版本内核文件\nhttps://github.com/${{ github.event.inputs.tag1 }}/releases \nZip by upx\n使用了upx进行压缩\nOnly support for ShellCrash\n仅限于ShellCrash项目使用" + body: "The ${version} version of ${{ github.event.inputs.tag1 }} \n这是${{ github.event.inputs.tag1 }}的${version}版本内核文件\nhttps://github.com/${{ github.event.inputs.tag1 }}/releases \nZip by upx\n使用了upx进行压缩\nOnly support for ShellCrash\n仅限于ShellCrash项目使用" draft: false prerelease: true files: |