From 8eeeae0bfd295231796001cc00edba98d8e0d041 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sun, 3 Jul 2022 11:47:45 +0530 Subject: [PATCH] Execute if comment contains command startsWith() --> contains() Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index dd94e84..d835522 100644 --- a/.github/workflows/commentCommands.yml +++ b/.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' )