oh-my-posh/.github/workflows/discord.yml
dependabot[bot] 536e5415c6 chore(deps): bump sebastianpopp/discord-action from 1.0 to 2.0
Bumps [sebastianpopp/discord-action](https://github.com/sebastianpopp/discord-action) from 1.0 to 2.0.
- [Release notes](https://github.com/sebastianpopp/discord-action/releases)
- [Commits](ba18c5aaa8...4f2d5417bc)

---
updated-dependencies:
- dependency-name: sebastianpopp/discord-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 06:25:53 +01:00

32 lines
848 B
YAML

name: Discord
on:
release:
types: [published]
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@4f2d5417bc61a79593304a62e71cd32427c17790
with:
webhook: ${{ secrets.CHANGELOG_WEBHOOK }}
message: |
📦 ${{ github.event.release.name }}
${{steps.notes.outputs.result}}
${{ github.event.release.html_url }}