Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyangliu committed Jul 12, 2024
1 parent a99e3bc commit 0eb8f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sync_release_to_gitee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@ jobs:
core.setFailed(`Error creating Gitee release: ${error.message}`);
} else {
const data = await response.json();
core.setOutput('gitee_release_id', data.id); // Set output with Gitee release ID
core.setOutput('release_id', data.id); // Set output with Gitee release ID
console.log('Gitee release created successfully:', data);
}
env:
GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }}

- name: Upload assets to Gitee Release
run: |
releaseId="${{ steps.get_release_info.outputs.release_id }}"
releaseId="${{ steps.create_gitee_release.outputs.release_id }}"
for file in ./downloads/*; do
curl -X POST \
-F "access_token=${{ secrets.GITEE_TOKEN }}" \
-F "file=@${file}" \
"https://gitee.com/api/v5/reposopenblockcc/external-resources-v3/releases/${releaseId}/attach_files"
"https://gitee.com/api/v5/reposopenblockcc/external-resources-v3/releases/$releaseId/attach_files"
done
env:
GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }}

0 comments on commit 0eb8f36

Please sign in to comment.