forked from Imulion/MHFZ_Overlay
-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (66 loc) · 2.4 KB
/
discord-webhook-notifier.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Actions Status Discord
on:
push:
issues:
pull_request:
issue_comment:
jobs:
actions-status-discord:
runs-on: ubuntu-latest
steps:
- name: Notify Discord about issue and pull request comments
if: github.event_name == 'issue_comment'
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
content: "<@937384021527257209>"
title: "`MHF-Z Overlay` Status"
description: |
New comment: ${{ github.event.issue.url }}
image: ${{ secrets.EMBED_IMAGE }}
color: 0xff435d
username: GitHub Actions
avatar_url: ${{ secrets.AVATAR_URL }}
- name: Notify Discord about new issue
if: github.event_name == 'issues'
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
content: "<@937384021527257209>"
title: "`MHF-Z Overlay` Status"
description: |
New issue: ${{ github.event.issue.title }}
image: ${{ secrets.EMBED_IMAGE }}
color: 0xff435d
username: GitHub Actions
avatar_url: ${{ secrets.AVATAR_URL }}
- name: Notify Discord about new pull request
if: github.event_name == 'pull_request'
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
content: "<@937384021527257209>"
title: "`MHF-Z Overlay` Status"
description: |
New pull request: ${{ github.event.pull_request.title }}
image: ${{ secrets.EMBED_IMAGE }}
color: 0xff435d
username: GitHub Actions
avatar_url: ${{ secrets.AVATAR_URL }}
- name: Notify Discord about pushes
if: github.event_name == 'push'
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
title: "`MHF-Z Overlay` Status"
description: |
New commit
Click [here](https://github.com/DorielRivalet/MHFZ_Overlay/blob/main/CHANGELOG.md) to view changelog!
image: ${{ secrets.EMBED_IMAGE }}
color: 0xff435d
username: GitHub Actions
avatar_url: ${{ secrets.AVATAR_URL }}