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 0c4385f commit 9bc7b2d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/sync_release_to_gitee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ jobs:
- name: Download release assets
run: |
const releaseInfo = ${{ toJson(steps.get_release_info.outputs.result) }};
console.log('Release tag name:', releaseInfo.tag_name);
console.log('Assets:', releaseInfo.assets);
console.log('Release tag length:', releaseInfo.length);
const { exec } = require("child_process");
echo ${{ steps.get_release_info.outputs.result.assets }}
const assets = ${{ steps.get_release_info.outputs.result.assets }};
const assets = ${{ toJson(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 9bc7b2d

Please sign in to comment.