-
Notifications
You must be signed in to change notification settings - Fork 28
39 lines (35 loc) · 1.04 KB
/
mattermost-ziti-webhook.yml
File metadata and controls
39 lines (35 loc) · 1.04 KB
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: ziti-mattermost-action-py
on:
issues:
issue_comment:
pull_request_review:
types: [submitted]
pull_request_review_comment:
pull_request:
types: [opened, reopened]
push:
fork:
release:
types: [released]
permissions:
contents: read
jobs:
ziti-webhook:
continue-on-error: true
runs-on: ubuntu-latest
name: Ziti Mattermost Action - Py
steps:
- uses: openziti/ziti-mattermost-action-py@v1
if: github.event_name != 'pull_request_review'
with:
zitiId: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
webhookUrl: ${{ secrets.ZHOOK_URL_DEV_NOTIFICATIONS }}
eventJson: ${{ toJson(github.event) }}
senderUsername: "GitHubZ"
- uses: openziti/ziti-mattermost-action-py@v1
if: github.event_name == 'pull_request_review' && github.event.review.state == 'approved'
with:
zitiId: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
webhookUrl: ${{ secrets.ZHOOK_URL_DEV_NOTIFICATIONS }}
eventJson: ${{ toJson(github.event) }}
senderUsername: "GitHubZ"