mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
6f496ecf11
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](98814c53be...d7906e4ad0
)
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
32 lines
848 B
YAML
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@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 }}
|