Execute if comment contains command

startsWith() --> contains()

Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com>
This commit is contained in:
sy-b
2022-07-03 11:47:45 +05:30
committed by GitHub
parent 5d1c8580f1
commit 8eeeae0bfd
+1 -1
View File
@@ -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' )