Skip to content

Workflow file for this run

on: push
jobs:
does-not-work:
runs-on: ubuntu-latest
steps:
- name: Doesn't work
uses: actions/github-script@v7
with:
script: |
await core.summary
.addBreak()
.addCodeBlock(`<!-- some html comment -->\n\n# Title`, 'markdown')
.write()
works-1:
runs-on: ubuntu-latest
steps:
- name: Fix example
uses: actions/github-script@v7
with:
script: |
await core.summary
.addCodeBlock(`<!-- some html comment -->\n\n# Title`, 'markdown')
.write()
works-2:
runs-on: ubuntu-latest
steps:
- name: Fix example
uses: actions/github-script@v7
with:
script: |
await core.summary
.addBreak()
.addCodeBlock(`<!-- some html comment -->\n# Title`, 'markdown')
.write()
works-3:
runs-on: ubuntu-latest
steps:
- name: Fix example
uses: actions/github-script@v7
with:
script: |
await core.summary
.addBreak()
.addCodeBlock(
`<!-- Release notes generated using configuration in .github/release.yml at vX.X.X -->\n\n## What's Changed\n* Some PR by @Drarig29 in https:/foo/bar/pull/123\n\n**Full Changelog**: https:/foo/bar/compare/vX.X.X...vY.Y.Y`.replace('-->\n\n', '-->\n'),
'markdown'
)
.write()