-
Notifications
You must be signed in to change notification settings - Fork 43
26 lines (23 loc) · 787 Bytes
/
webhook.yml
File metadata and controls
26 lines (23 loc) · 787 Bytes
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
name: Discord Webhook
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
webhook:
if: github.repository == 'codedeliveryservice/Reckless' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Discord notification
uses: Sniddl/discord-commits@v1.6
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
message: "New commit on the `main` branch"
embed: '{
"title": "{{ commit.title }}",
"description": "{{ commit.description }}",
"url": "{{ commit.url }}",
"author": {
"name": "{{ commit.author.name }} ({{ commit.author.username }})",
"icon_url": "https://github.com/{{ commit.author.username }}.png"}
}'