Skip to content

Commit

Permalink
Update jscpd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
patmmccann authored Jun 8, 2024
1 parent e3a26d9 commit 1d059be
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/jscpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1d059be

Please sign in to comment.