Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyangliu committed Jul 12, 2024
1 parent e536de2 commit 0c4385f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/sync_release_to_gitee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ jobs:
- name: Download release assets
run: |
const { exec } = require("child_process");
echo ${{ steps.get_release_info.outputs.result }}
echo ${{ toJson(steps.get_release_info.outputs.result) }}
echo ${{ toJson(steps.get_release_info.outputs.result).assets }}
const assets = ${{ toJson(steps.get_release_info.outputs.result).assets }};
echo ${{ steps.get_release_info.outputs.result.assets }}
const assets = ${{ steps.get_release_info.outputs.result.assets }};
const downloadUrls = assets.map(asset => asset.browser_download_url);
for (const url of downloadUrls) {
exec(`curl -L -o ${url.split('/').pop()} ${url}`, (error, stdout, stderr) => {
Expand Down

0 comments on commit 0c4385f

Please sign in to comment.