mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
.github: add discord notification action
This commit is contained in:
parent
c4f0450710
commit
1ef1ae48d1
1 changed files with 20 additions and 0 deletions
20
.github/workflows/discord.yml
vendored
Normal file
20
.github/workflows/discord.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Discord Notifications
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
pull_request:
|
||||
types: [opened, merged]
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: Ilshidur/action-discord@master
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
with:
|
||||
args: >
|
||||
New **${{ github.event_name }}**:
|
||||
[#${{ github.event.issue.number || github.event.pull_request.number }} - ${{ github.event.issue.title || github.event.pull_request.title }}](${{ github.event.issue.html_url || github.event.pull_request.html_url }})
|
||||
by **${{ github.actor }}**
|
||||
Loading…
Reference in a new issue