mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 22:07:25 -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:
|
notify:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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 📝
|
- name: Changelog 📝
|
||||||
uses: sebastianpopp/discord-action@ba18c5aaa871acf97620c349fd76a187550f12eb
|
uses: sebastianpopp/discord-action@ba18c5aaa871acf97620c349fd76a187550f12eb
|
||||||
with:
|
with:
|
||||||
|
@ -14,6 +26,6 @@ jobs:
|
||||||
message: |
|
message: |
|
||||||
📦 ${{ github.event.release.name }}
|
📦 ${{ github.event.release.name }}
|
||||||
|
|
||||||
${{ github.event.release.body }}
|
${{steps.notes.outputs.result}}
|
||||||
|
|
||||||
${{ github.event.release.html_url }}
|
${{ github.event.release.html_url }}
|
||||||
|
|
Loading…
Reference in a new issue