修复publish-release中release_id错误问题

This commit is contained in:
YHH
2025-10-16 20:07:56 +08:00
parent f0046c7dc2
commit a6e49e1d47

View File

@@ -101,11 +101,13 @@ jobs:
steps:
- name: Publish Release
uses: actions/github-script@v7
env:
RELEASE_ID: ${{ needs.create-release.outputs.release_id }}
with:
script: |
github.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: ${{ needs.create-release.outputs.release_id }},
release_id: process.env.RELEASE_ID,
draft: false
})