diff --git a/.github/workflows/release-on-comment.yml b/.github/workflows/release-on-comment.yml index 7db96010b..fe62eb1cb 100644 --- a/.github/workflows/release-on-comment.yml +++ b/.github/workflows/release-on-comment.yml @@ -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