-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Discord Webhook Notification | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, closed, reopened] | ||
pull_request_review: | ||
types: [submitted, edited, dismissed] | ||
issues: | ||
types: [opened, closed, reopened] | ||
release: | ||
types: [published, edited, released] | ||
check_run: | ||
types: [completed] | ||
check_suite: | ||
types: [completed] | ||
deployment: | ||
types: [created, completed] | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send notification to Discord for Push | ||
if: github.event_name == 'push' | ||
run: | | ||
curl -H "Content-Type: application/json" \ | ||
-d "{\"content\": \"New push event in repository: ${{ github.repository }} by ${{ github.actor }}.\"}" \ | ||
https://discord.com/api/webhooks/1286631616931696763/uBh6xUwzrCnamHFURde3lb3MvKSvLv3lWeJs9HaIe-r_Lw4bHXDpkZjwKfuAijSiiSUk | ||
- name: Send notification to Discord for Pull Request | ||
if: github.event_name == 'pull_request' | ||
run: | | ||
curl -H "Content-Type: application/json" \ | ||
-d "{\"content\": \"New pull request event in repository: ${{ github.repository }} by ${{ github.actor }}.\"}" \ | ||
https://discord.com/api/webhooks/1286631616931696763/uBh6xUwzrCnamHFURde3lb3MvKSvLv3lWeJs9HaIe-r_Lw4bHXDpkZjwKfuAijSiiSUk | ||
- name: Send notification to Discord for Pull Request Review | ||
if: github.event_name == 'pull_request_review' | ||
run: | | ||
curl -H "Content-Type: application/json" \ | ||
-d "{\"content\": \"New pull request review event in repository: ${{ github.repository }} by ${{ github.actor }}.\"}" \ | ||
https://discord.com/api/webhooks/1286631616931696763/uBh6xUwzrCnamHFURde3lb3MvKSvLv3lWeJs9HaIe-r_Lw4bHXDpkZjwKfuAijSiiSUk | ||
- name: Send notification to Discord for Issues | ||
if: github.event_name == 'issues' | ||
run: | | ||
curl -H "Content-Type: application/json" \ | ||
-d "{\"content\": \"New issue event in repository: ${{ github.repository }} by ${{ github.actor }}.\"}" \ | ||
https://discord.com/api/webhooks/1286631616931696763/uBh6xUwzrCnamHFURde3lb3MvKSvLv3lWeJs9HaIe-r_Lw4bHXDpkZjwKfuAijSiiSUk | ||
- name: Send notification to Discord for Release | ||
if: github.event_name == 'release' | ||
run: | | ||
curl -H "Content-Type: application/json" \ | ||
-d "{\"content\": \"New release event in repository: ${{ github.repository }} by ${{ github.actor }}.\"}" \ | ||
https://discord.com/api/webhooks/1286631616931696763/uBh6xUwzrCnamHFURde3lb3MvKSvLv3lWeJs9HaIe-r_Lw4bHXDpkZjwKfuAijSiiSUk | ||
- name: Send notification to Discord for Check Run | ||
if: github.event_name == 'check_run' | ||
run: | | ||
curl -H "Content-Type: application/json" \ | ||
-d "{\"content\": \"New check run completed in repository: ${{ github.repository }}.\"}" \ | ||
https://discord.com/api/webhooks/1286631616931696763/uBh6xUwzrCnamHFURde3lb3MvKSvLv3lWeJs9HaIe-r_Lw4bHXDpkZjwKfuAijSiiSUk | ||
- name: Send notification to Discord for Check Suite | ||
if: github.event_name == 'check_suite' | ||
run: | | ||
curl -H "Content-Type: application/json" \ | ||
-d "{\"content\": \"New check suite completed in repository: ${{ github.repository }}.\"}" \ | ||
https://discord.com/api/webhooks/1286631616931696763/uBh6xUwzrCnamHFURde3lb3MvKSvLv3lWeJs9HaIe-r_Lw4bHXDpkZjwKfuAijSiiSUk | ||
- name: Send notification to Discord for Deployment | ||
if: github.event_name == 'deployment' | ||
run: | | ||
curl -H "Content-Type: application/json" \ | ||
-d "{\"content\": \"New deployment event in repository: ${{ github.repository }}.\"}" \ | ||
https://discord.com/api/webhooks/1286631616931696763/uBh6xUwzrCnamHFURde3lb3MvKSvLv3lWeJs9HaIe-r_Lw4bHXDpkZjwKfuAijSiiSUk |