test: 错误的触发名称

This commit is contained in:
Junyan Qin 2023-12-27 15:23:53 +00:00
parent fba81582ab
commit bf5ebc9245

View File

@ -8,7 +8,7 @@ on:
- '**.py'
pull_request_review:
types: [submitted]
pull_request_review_comment:
issue_comment:
types: [created]
# 允许手动触发
workflow_dispatch:
@ -21,7 +21,7 @@ jobs:
github.event_name == 'pull_request' ||
(github.event_name == 'pull_request_review' && github.event.review.state == 'APPROVED') ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/test') && github.event.comment.user.login == 'RockChinQ')
(github.event_name == 'issue_comment' && github.event.issue.pull_request != '' && contains(github.event.comment.body, '/test') && github.event.comment.user.login == 'RockChinQ')
steps:
# 签出测试工程仓库代码
- name: Checkout
@ -52,4 +52,4 @@ jobs:
- name: Run test
run: |
cd qcg-tester
python main.py
python main.py