-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
31 lines (27 loc) · 848 Bytes
/
discord.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Discord
on:
release:
types: [published]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Notes 📝
id: notes
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
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@4f2d5417bc61a79593304a62e71cd32427c17790
with:
webhook: ${{ secrets.CHANGELOG_WEBHOOK }}
message: |
📦 ${{ github.event.release.name }}
${{steps.notes.outputs.result}}
${{ github.event.release.html_url }}