From 630a271e9ddd126e94d381bba09505e9ff34c82b Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sun, 3 Jul 2022 13:06:29 +0530 Subject: [PATCH] fix wrong expression & url Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index d835522..89bf1c0 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -23,7 +23,7 @@ jobs: add-label-duplicate: runs-on: ubuntu-latest if: | - contains(github.event.comment.body, "/duplicate") == '/add' && ( + contains(github.event.comment.body, "/duplicate") && ( github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'CONTRIBUTOR' ) @@ -34,5 +34,5 @@ jobs: -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/label \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels \ -d '{"labels":["duplicate"]}'