oh-my-posh/.github/workflows/discord.yml

32 lines
848 B
YAML
Raw Normal View History

2022-12-23 00:17:17 -08:00
name: Discord
on:
release:
types: [published]
jobs:
notify:
runs-on: ubuntu-latest
steps:
2022-12-24 07:34:27 -08:00
- name: Notes 📝
id: notes
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
with:
2022-12-24 07:34:27 -08:00
result-encoding: string
script: |
notes = context.payload.release.body
// replace all non-supported characters
2022-12-24 07:34:27 -08:00
notes = notes.replaceAll('###', '')
notes = notes.trim()
return notes
2022-12-23 00:17:17 -08:00
- name: Changelog 📝
uses: sebastianpopp/discord-action@ba18c5aaa871acf97620c349fd76a187550f12eb
with:
webhook: ${{ secrets.CHANGELOG_WEBHOOK }}
message: |
📦 ${{ github.event.release.name }}
${{steps.notes.outputs.result}}
2022-12-23 00:17:17 -08:00
${{ github.event.release.html_url }}