From 648d8498b4448366ceb7020db58805d003226d74 Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Sun, 9 Jun 2024 15:12:35 -0400 Subject: [PATCH] Update jscpd.yml --- .github/workflows/jscpd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jscpd.yml b/.github/workflows/jscpd.yml index 3407c1b5686..9fe419b869b 100644 --- a/.github/workflows/jscpd.yml +++ b/.github/workflows/jscpd.yml @@ -64,8 +64,8 @@ jobs: echo "Changed files: $CHANGED_FILES" jq --argjson changed_files "$CHANGED_FILES" ' .duplicates | map(select( - ($changed_files | index(.firstFile.name) // -1) >= 0 or - ($changed_files | index(.secondFile.name) // -1) >= 0 + any($changed_files[]; . == .firstFile.name) or + any($changed_files[]; . == .secondFile.name) )) ' ./jscpd-report.json > filtered-jscpd-report.json cat filtered-jscpd-report.json