Fix release workflow: pass notes via env var to avoid backtick syntax error
Co-authored-by: ds-sebastian <69488704+ds-sebastian@users.noreply.github.com>
This commit is contained in:
co-authored by
ds-sebastian
parent
e5b6644b45
commit
eacca8fe22
@@ -64,10 +64,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
|
env:
|
||||||
|
RELEASE_TAG: ${{ steps.tag.outputs.TAG }}
|
||||||
|
RELEASE_NOTES: ${{ steps.changelog.outputs.NOTES }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const tag = '${{ steps.tag.outputs.TAG }}';
|
const tag = process.env.RELEASE_TAG;
|
||||||
const notes = `${{ steps.changelog.outputs.NOTES }}`.trim();
|
const notes = (process.env.RELEASE_NOTES || '').trim();
|
||||||
await github.rest.repos.createRelease({
|
await github.rest.repos.createRelease({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|||||||
Reference in New Issue
Block a user