stop spamming bench comments (#2362)

This commit is contained in:
Julius Lungys 2022-01-12 12:25:31 +02:00 committed by GitHub
parent 5dd8b7635c
commit 42343b792d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ on:
branches: branches:
- master - master
pull_request_target: pull_request_target:
types: [labeled, synchronize, opened, reopened]
permissions: permissions:
# deployments permission to deploy GitHub pages website # deployments permission to deploy GitHub pages website
@ -37,7 +38,7 @@ jobs:
# Push and deploy GitHub pages branch automatically # Push and deploy GitHub pages branch automatically
alert-threshold: "200%" alert-threshold: "200%"
alert-comment-cc-users: "@yewstack/yew" alert-comment-cc-users: "@yewstack/yew"
comment-always: true comment-always: ${{ github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'performance') }}
comment-on-alert: true comment-on-alert: true
# Don't push to gh-pages if its a pull request # Don't push to gh-pages if its a pull request
auto-push: ${{ github.event_name != 'pull_request_target' }} auto-push: ${{ github.event_name != 'pull_request_target' }}