From e080c65b708d92e153a99aa36c01637587a80f4a Mon Sep 17 00:00:00 2001 From: MistEO Date: Tue, 4 Feb 2025 05:02:57 +0800 Subject: [PATCH] ci: perf mirrorchyan download version --- .github/workflows/mirrorchyan.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mirrorchyan.yml b/.github/workflows/mirrorchyan.yml index 3854aa6636..cfd8a12fe9 100644 --- a/.github/workflows/mirrorchyan.yml +++ b/.github/workflows/mirrorchyan.yml @@ -15,15 +15,20 @@ jobs: arch: [arm64, x64] steps: - # 下载 Release 包 + - id: version + uses: pozetroninc/github-action-get-latest-release@master + with: + owner: MaaAssistantArknights + repo: MaaAssistantArknights + token: ${{ secrets.GITHUB_TOKEN }} + - name: Download Release uses: robinraju/release-downloader@v1 id: download with: repository: MaaAssistantArknights/MaaAssistantArknights fileName: "*MAA-*-${{ matrix.os }}-${{ matrix.arch }}.zip" - latest: true - preRelease: true + tag: ${{ steps.version.outputs.release }} out-file-path: "downloads" extract: false