Merge pull request #6896 from nicoddemus/release-trigger

Fix bot trigger event
This commit is contained in:
Bruno Oliveira 2020-03-11 10:04:41 -03:00 committed by GitHub
commit e1b3a68462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ jobs:
build:
runs-on: ubuntu-latest
if: (github.event.comment && contains(github.event.comment.body, '@pytestbot please')) || (github.event.issue && contains(github.event.issue.body, '@pytestbot please'))
if: (github.event.comment && startsWith(github.event.comment.body, '@pytestbot please')) || (github.event.issue && !github.event.comment && startsWith(github.event.issue.body, '@pytestbot please'))
steps:
- uses: actions/checkout@v1