Skip to content

Commit

Permalink
Merge pull request #2969 from Kiran-pande-30/Check_duplicate_workflow
Browse files Browse the repository at this point in the history
Fix: Fixed the duplicate tools workflows
  • Loading branch information
panwar8279 authored Aug 10, 2024
2 parents 54e4927 + a7eae03 commit 70327ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/check_duplicate_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:

- name: Check for duplicate entries in product.json
run: |
# Check for duplicate entries in product.json
jq -r '.[].productName' product.json | sort | uniq -d > duplicates.txt
# Check for duplicate entries based on the 'link' field in product.json
jq -r '.[].link' product.json | sort | uniq -d > duplicates.txt
if [ -s duplicates.txt ]; then
echo "Duplicate entries found in product.json:"
echo "Duplicate entries found in product.json based on 'link':"
cat duplicates.txt
exit 1
else
echo "No duplicate entries found."
echo "No duplicate entries found based on 'link'."
fi
close-issues:
Expand All @@ -46,4 +46,4 @@ jobs:
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE \
-d '{"state":"closed"}'
done
done

0 comments on commit 70327ff

Please sign in to comment.