mirror of
https://github.com/openziti/zrok.git
synced 2025-06-25 04:02:15 +02:00
stop trying futily to send Mattermost alerts in zrok forks and suppress alerts for Vercel "building" comments on PRs
This commit is contained in:
parent
98a4f9384a
commit
7801baeafa
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')
|
||||||
|
)
|
||||||
|
&& (
|
||||||
|
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