From 1d059bedea5e659d1b9cc7dc62f9ef7761db773d Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Sat, 8 Jun 2024 09:54:14 -0400 Subject: [PATCH] Update jscpd.yml --- .github/workflows/jscpd.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/jscpd.yml b/.github/workflows/jscpd.yml index 6f0f1f44b76..d3a2de26f11 100644 --- a/.github/workflows/jscpd.yml +++ b/.github/workflows/jscpd.yml @@ -56,14 +56,3 @@ jobs: with: name: unfiltered-jscpd-report path: ./jscpd-report.json - - - name: Filter jscpd report for changed files - run: | - if [ ! -f ./jscpd-report.json ]; then - echo "jscpd-report.json not found" - exit 1 - fi - echo "Filtering jscpd report for changed files..." - CHANGED_FILES=$(jq -R -s -c 'split("\n")[:-1]' js_files.txt) - jq --argjson changed_files "$CHANGED_FILES" '.duplicates | map(select($changed_files | index(.firstFile) or $changed_files | index(.secondFile)))' ./jscpd-report.json > filtered-jscpd-report.json - cat filtered-jscpd-report.json