Merge pull request #197 from openziti/suppress-vercel-building-comment

tune Mattermost alerts
This commit is contained in:
Ken Bingham 2023-01-31 15:08:36 -05:00 committed by GitHub
commit d31bfb246c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}