mirror of
https://github.com/openziti/zrok.git
synced 2025-06-19 17:27:54 +02: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:
|
steps:
|
||||||
- uses: openziti/ziti-mattermost-action-py@main
|
- uses: openziti/ziti-mattermost-action-py@main
|
||||||
if: |
|
if: |
|
||||||
(github.event_name != 'pull_request_review')
|
env.ZHOOK_URL != null
|
||||||
|| (github.event_name == 'pull_request_review' && github.event.review.state == 'approved')
|
&& !(
|
||||||
|
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:
|
with:
|
||||||
zitiId: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
|
zitiId: ${{ secrets.ZITI_MATTERMOST_IDENTITY }}
|
||||||
webhookUrl: ${{ secrets.ZHOOK_URL }}
|
webhookUrl: ${{ secrets.ZHOOK_URL }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user