chore(discord): strip headers from changelog

This commit is contained in:
Jan De Dobbeleer 2022-12-24 15:16:45 +01:00 committed by Jan De Dobbeleer
parent 6feeaa4703
commit 602ba9806f

View file

@ -7,6 +7,18 @@ jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Notes 📝
id: notes
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
with:
result-encoding: string
script: |
notes = context.payload.release.body
// replace all non-supported characters
notes = notes.replaceAll('###',
notes = notes.trim()
return notes
- name: Changelog 📝
uses: sebastianpopp/discord-action@ba18c5aaa871acf97620c349fd76a187550f12eb
with:
@ -14,6 +26,6 @@ jobs:
message: |
📦 ${{ github.event.release.name }}
${{ github.event.release.body }}
${{steps.notes.outputs.result}}
${{ github.event.release.html_url }}