From c349d6398598efa9a2e2ca4ba1782492d830f65d Mon Sep 17 00:00:00 2001 From: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com> Date: Tue, 7 Feb 2023 00:58:08 +0000 Subject: [PATCH] Add check to duplicate workflow (#3157) * Update autoLabelDuplicate.yml * remove empty lines --- .github/workflows/autoLabelDuplicate.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autoLabelDuplicate.yml b/.github/workflows/autoLabelDuplicate.yml index 756a98225..4bbbc9b4c 100644 --- a/.github/workflows/autoLabelDuplicate.yml +++ b/.github/workflows/autoLabelDuplicate.yml @@ -7,7 +7,9 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: Amwam/issue-comment-action@v1.3.1 + - name: Check Comment Author + if: github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' + uses: Amwam/issue-comment-action@v1.3.1 with: keywords: '["duplicate of #", "duplicate of https://github.com/FreeTubeApp/FreeTube/issues/", "duplicate of https://github.com/FreeTubeApp/FreeTube/pulls/"]' labels: '["U: duplicate"]'