Merge pull request #2 from ds-sebastian/copilot/fix-release-build-error
Fix release workflow: changelog backticks break JS template literal in github-script
This commit is contained in:
@@ -64,10 +64,13 @@ jobs:
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: actions/github-script@v7
|
||||
env:
|
||||
RELEASE_TAG: ${{ steps.tag.outputs.TAG }}
|
||||
RELEASE_NOTES: ${{ steps.changelog.outputs.NOTES }}
|
||||
with:
|
||||
script: |
|
||||
const tag = '${{ steps.tag.outputs.TAG }}';
|
||||
const notes = `${{ steps.changelog.outputs.NOTES }}`.trim();
|
||||
const tag = process.env.RELEASE_TAG;
|
||||
const notes = (process.env.RELEASE_NOTES || '').trim();
|
||||
await github.rest.repos.createRelease({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
|
||||
Reference in New Issue
Block a user