mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
chore(discord): strip headers from changelog
This commit is contained in:
parent
6feeaa4703
commit
602ba9806f
14
.github/workflows/discord.yml
vendored
14
.github/workflows/discord.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue