From 451af772f527609353129dea9f961f5fdfe38f46 Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Wed, 7 Apr 2021 10:59:46 -0400 Subject: [PATCH] update comment workflow --- .github/workflows/comment.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 05dc6505a..1a346d938 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -10,7 +10,9 @@ jobs: rebase: name: rebase runs-on: ubuntu-latest - if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase') + if: | + github.event.issue.pull_request && + startsWith(github.event.comment.body, '/rebase') steps: - name: Checkout repo uses: actions/checkout@v2 @@ -25,7 +27,10 @@ jobs: release_next: name: release:next runs-on: ubuntu-latest - if: github.event.issue.pull_request != '' && github.event.sender.login === 'ianstormtaylor' && startsWith(github.event.comment.body, '/release:next') + if: | + github.event.issue.pull_request && + github.event.sender.login == 'ianstormtaylor' && + startsWith(github.event.comment.body, '/release:next') steps: - name: Checkout repo uses: actions/checkout@v2