From 65923c6740818db96027d4781cb78ddf6bfe4bfd Mon Sep 17 00:00:00 2001 From: Henry Date: Sat, 1 Aug 2020 20:03:40 +0100 Subject: [PATCH] fix: auto comment actions --- .github/workflows/comment-on-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/comment-on-pr.yml b/.github/workflows/comment-on-pr.yml index af4812a63..49453743d 100644 --- a/.github/workflows/comment-on-pr.yml +++ b/.github/workflows/comment-on-pr.yml @@ -10,13 +10,13 @@ jobs: comment: runs-on: ubuntu-latest steps: - - if: github.event.issue.pull_request != '' + - if: github.event_name == 'pull_request' name: Comment on PR uses: github-actions-up-and-running/pr-comment@v1.0.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} message: "👍 感谢提交该 PR,请确保使用了 [PR 模板](https://github.com/DIYgod/RSSHub/blob/master/.github/PULL_REQUEST_TEMPLATEpull_request_template.md) 以便于测试。

👍 Thanks for the PR, please make sure you have followed the [PR template](https://github.com/DIYgod/RSSHub/blob/master/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md) to simplify the testing." - - if: github.event.issue.pull_request == '' + - if: github.event_name == 'issues' name: Comment on Issue uses: ben-z/actions-comment-on-issue@1.0.2 with: