修复publish-release中release_id错误问题
This commit is contained in:
4
.github/workflows/release-editor.yml
vendored
4
.github/workflows/release-editor.yml
vendored
@@ -101,11 +101,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Publish Release
|
- name: Publish Release
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
|
env:
|
||||||
|
RELEASE_ID: ${{ needs.create-release.outputs.release_id }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
github.rest.repos.updateRelease({
|
github.rest.repos.updateRelease({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
release_id: ${{ needs.create-release.outputs.release_id }},
|
release_id: process.env.RELEASE_ID,
|
||||||
draft: false
|
draft: false
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user