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 9, 2024
1 parent 51cd4d2 commit bf5f72e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/jscpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ jobs:
fi
echo "Filtering jscpd report for changed files..."
CHANGED_FILES=$(jq -R -s -c 'split("\n")[:-1]' changed_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
echo "Changed files: $CHANGED_FILES"
jq --argjson changed_files "$CHANGED_FILES" '.duplicates | map(select(.firstFile | in($changed_files) or .secondFile | in($changed_files)))' ./jscpd-report.json > filtered-jscpd-report.json
cat filtered-jscpd-report.json
- name: Upload filtered jscpd report
Expand Down

0 comments on commit bf5f72e

Please sign in to comment.