generated from HephaestusProject/template
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.1 KB
/
mention-to-slack.yaml
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
name: Mention Notifier
on:
issues:
types: [opened, edited]
issue_comment:
types: [created, edited]
pull_request:
types: [opened, edited, review_requested]
pull_request_review:
types: [submitted]
pull_request_review_comment:
types: [created, edited]
jobs:
mention-to-slack:
runs-on: ubuntu-latest
steps:
- name: Mention Notify
uses: abeyuya/actions-mention-to-slack@v2.4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_MENTION }}
icon-url: https://img.icons8.com/color/256/000000/github-2.png
bot-name: "GitHub Mention알리미"
run-id: ${{ github.run_id }}
- name: Slack-Notification
uses: 8398a7/action-slack@v3
with:
status: ${{job.status}}
fields: repo,message,commit,author,action,eventName,ref,workflow
author_name: GitHub Mension Sync
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: failure()