diff --git a/.github/workflows/close-duplicates.yml b/.github/workflows/close-duplicates.yml index 590256058d..fe804f8443 100644 --- a/.github/workflows/close-duplicates.yml +++ b/.github/workflows/close-duplicates.yml @@ -14,7 +14,11 @@ jobs: should_run: ${{ steps.should_run.outputs.run }} steps: - id: should_run - run: echo "run=${{ github.event_name == 'issues' || github.event.discussion.category.name == 'Feature Request' }}" >> $GITHUB_OUTPUT + run: | + echo "run=${{ + (github.event_name == 'issues' || github.event.discussion.category.name == 'Feature Request') + && !contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association || github.event.discussion.author_association) + }}" >> "$GITHUB_OUTPUT" get_body: runs-on: ubuntu-latest