Skip to content

Commit

Permalink
Merge pull request #126 from nikoksr/feat-discord-bot
Browse files Browse the repository at this point in the history
ci: add discord notification bot
  • Loading branch information
nikoksr authored Jun 19, 2020
2 parents 1194920 + 23ac2ef commit 0f3dd0c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/discord_notify_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: discord_notification

on: [push, pull_request, release]

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Discord Notify
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
with:
args: |
'[![Avatar not found]({{ EVENT_PAYLOAD.sender.avatar_url }})]({{ EVENT_PAYLOAD.sender.html_url }}) [{{ EVENT_PAYLOAD.sender.login }}]({{ EVENT_PAYLOAD.sender.html_url }})'
'`{{ EVENT_PAYLOAD.action }}`: {{ EVENT_PAYLOAD.name }}'
'`[{{ EVENT_PAYLOAD.check_run.head_sha }}]({{ EVENT_PAYLOAD.check_run.html_url }})`'
'{{ EVENT_PAYLOAD.check_run.status }} {{ EVENT_PAYLOAD.check_run.completed_at }}'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/nikoksr/proji)](https://goreportcard.com/report/github.com/nikoksr/proji)
[![CircleCI](https://circleci.com/gh/nikoksr/proji.svg?style=shield)](https://circleci.com/gh/nikoksr/proji)
[![codecov](https://codecov.io/gh/nikoksr/proji/branch/master/graph/badge.svg)](https://codecov.io/gh/nikoksr/proji)
[![Discord](https://img.shields.io/discord/723332758579183718?color=blue&label=discord)](https://discord.gg/gWM9Vr)
![Platforms](https://img.shields.io/badge/platforms-Windows%2C%20macOS%20and%20Linux-blue)
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/nikoksr/proji)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)
Expand Down

0 comments on commit 0f3dd0c

Please sign in to comment.