File tree Expand file tree Collapse file tree 2 files changed +102
-322
lines changed Expand file tree Collapse file tree 2 files changed +102
-322
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ jobs:
13
13
14
14
- name : Check for duplicate entries in product.json
15
15
run : |
16
- # Check for duplicate entries in product.json
17
- jq -r '.[].productName ' product.json | sort | uniq -d > duplicates.txt
16
+ # Check for duplicate entries based on the 'link' field in product.json
17
+ jq -r '.[].link ' product.json | sort | uniq -d > duplicates.txt
18
18
if [ -s duplicates.txt ]; then
19
- echo "Duplicate entries found in product.json:"
19
+ echo "Duplicate entries found in product.json based on 'link' :"
20
20
cat duplicates.txt
21
21
exit 1
22
22
else
23
- echo "No duplicate entries found."
23
+ echo "No duplicate entries found based on 'link' ."
24
24
fi
25
25
26
26
close-issues :
46
46
-H "Accept: application/vnd.github.v3+json" \
47
47
https://api.github.com/repos/${{ github.repository }}/issues/$ISSUE \
48
48
-d '{"state":"closed"}'
49
- done
49
+ done
You can’t perform that action at this time.
0 commit comments