浏览代码

Execute if comment contains command

startsWith() --> contains()

Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
sy-b 3 年之前
父节点
当前提交
8eeeae0bfd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .github/workflows/commentCommands.yml

+ 1 - 1
.github/workflows/commentCommands.yml

@@ -23,7 +23,7 @@ jobs:
   add-label-duplicate:
     runs-on: ubuntu-latest
     if: |
-      startsWith(github.event.comment.body, "/duplicate") == '/add' && (
+      contains(github.event.comment.body, "/duplicate") == '/add' && (
       github.event.comment.author_association == 'OWNER' ||
       github.event.comment.author_association == 'COLLABORATOR' ||
       github.event.comment.author_association == 'CONTRIBUTOR' )