diff --git a/.github/workflows/jaotan-review.yml b/.github/workflows/jaotan-review.yml index 5b4719caa..03c7cf424 100644 --- a/.github/workflows/jaotan-review.yml +++ b/.github/workflows/jaotan-review.yml @@ -7,11 +7,11 @@ on: jobs: review: runs-on: ubuntu-latest - if: github.event.issue.pull_request != null && github.event.issue.actor.id == "8929706" && contains(github.event.comment.body, '@jaotan') && contains(github.event.comment.body, 'review') + if: github.event.issue.pull_request != null && github.event.sender.id == "8929706" && contains(github.event.comment.body, '@jaotan') && contains(github.event.comment.body, 'review') steps: - name: Review run: gh pr review ${{ github.event.issue.number }} -a -b "It was reviewed by a request by comment." env: - GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}