-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (39 loc) Β· 1.12 KB
/
opend-issue-notification.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
33
34
35
36
37
38
39
40
name: Opend Issue Notification
on:
issues:
types:
- opened
jobs:
create-issue:
name: Send opend issue notification to slack
runs-on: ubuntu-latest
steps:
- name: Send Issue
uses: 8398a7/action-slack@v3
with:
status: custom
custom_payload: |
{
text: "*μλ‘μ΄ μ΄μκ° μμ±λμμ΅λλ€!*",
attachments: [{
fallback: 'fallback',
color: '#1F7629',
title: 'Title',
text: '<${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>',
fields: [{
title: 'Issue number',
value: '#${{ github.event.issue.number }}',
short: true
},
{
title: 'Author',
value: '${{ github.event.issue.user.login }}',
short: true
}],
actions: [{
}]
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }}
if: always()