-
Notifications
You must be signed in to change notification settings - Fork 23
38 lines (36 loc) · 1.02 KB
/
plex.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
38
name: Notify Plex
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
notify-plex:
runs-on: ubuntu-latest
if: ${{ !contains(github.head_ref, 'renovate') }}
steps:
- uses: slackapi/[email protected]
with:
payload: |
{
"text": "New Papr PR: ${{ github.event.pull_request.html_url }}",
"attachments": [
{
"text": "",
"fallback": "Test Papr PR",
"callback_id": "trigger_workflow",
"actions": [
{
"name": "papr_pr",
"text": "Test Papr PR",
"type": "button",
"value": "${{ github.event.pull_request.number }}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ vars.SLACK_PAPR_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK