mirror of
https://github.com/openziti/zrok.git
synced 2025-01-10 16:08:20 +01:00
Merge pull request #197 from openziti/suppress-vercel-building-comment
tune Mattermost alerts
This commit is contained in:
commit
d31bfb246c
14
.github/workflows/zhook.yml
vendored
14
.github/workflows/zhook.yml
vendored
@ -22,8 +22,18 @@ jobs:
|
||||
steps:
|
||||
- uses: openziti/ziti-mattermost-action-py@main
|
||||
if: |
|
||||
(github.event_name != 'pull_request_review')
|
||||
|| (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
|
||||
env.ZHOOK_URL != null
|
||||
&& !(
|
||||
github.event_name == 'issue_comment'
|
||||
&& github.event.sender.login == 'vercel[bot]'
|
||||
&& (contains(github.event.comment.body, 'Building') || contains(github.event.comment.body, 'Ignored'))
|
||||
)
|
||||
&& (
|
||||
github.event_name != 'pull_request_review'
|
||||
|| (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
|
||||
)
|
||||
env:
|
||||
ZHOOK_URL: ${{ secrets.ZHOOK_URL }}
|
||||
with:
|
||||
zitiId: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
|
||||
webhookUrl: ${{ secrets.ZHOOK_URL }}
|
||||
|
Loading…
Reference in New Issue
Block a user