From 1d3e8644f0d84003de20352bba047e092377126d Mon Sep 17 00:00:00 2001 From: Controllerdestiny <523321293@qq.co> Date: Wed, 2 Oct 2024 00:27:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=90=8C=E6=AD=A5gitee=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 16 ++++++++-------- scripts/GiteeSync.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9251723e..c2a4803a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -124,6 +124,14 @@ jobs: git commit -m "自动更新$($Changed -Join ", ") [skip ci]" git push } + + - name: 下载临时插件包 + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + uses: dawidd6/action-download-artifact@v6 + with: + name: Plugins + path: bin + skip_unpack: true - name: 同步其他平台 continue-on-error: true @@ -147,14 +155,6 @@ jobs: with: configuration: ".config/log_config.json" - - name: 下载临时插件包 - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - uses: dawidd6/action-download-artifact@v6 - with: - name: Plugins - path: bin - skip_unpack: true - - name: 发布插件包 if: github.event_name == 'push' && github.ref == 'refs/heads/master' uses: ncipollo/release-action@v1 diff --git a/scripts/GiteeSync.py b/scripts/GiteeSync.py index 597ad29d..ddde3b38 100644 --- a/scripts/GiteeSync.py +++ b/scripts/GiteeSync.py @@ -9,7 +9,7 @@ 'Authorization': f'token {gitee_token}' } files = { - 'file': open('out/Plugins.zip', 'rb') + 'file': open('bin/Plugins.zip', 'rb') } attachments = requests.get(f"https://gitee.com/api/v5/repos/{owner}/{repo}/releases/{release_id}/attach_files?&page=1&per_page=100&direction=asc",headers=headers).json() for attachment in attachments: