Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

工作流: 修复同步gitee插件包 #504

Merged
merged 2 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/GiteeSync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading