generated from ProtossDragoon/vscode-py-template
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.09 KB
/
ci-discord-noti.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
name: CI - 디스코드 알림
# NOTE: 브랜치 지정 방법
# https://stackoverflow.com/questions/57699839/github-actions-how-to-target-all-branches-except-master
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
# NOTE: github 컨텍스트 변수와 디스코드 액션 사용법
# https://github.com/rjstone/discord-webhook-notify
# https://docs.github.com/ko/actions/learn-github-actions/contexts
jobs:
discord_notify:
runs-on: ubuntu-latest
steps:
- name: Send Notification to Discord
uses: rjstone/discord-webhook-notify@v1.0.4
with:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }}
username: ${{ github.event.repository.name }}
severity: info
avatarUrl: https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png
text: |
**${{ github.ref_name }}** 브랜치에 **${{ github.actor }}**님의 새로운 **${{ github.event_name }}**가 있어요!
description: |
${{ github.event.head_commit.message }}
footer: |
${{ github.ref_name }}