mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-05 20:57:28 +00:00
fix our uniqueness check to als include JSON files
This commit is contained in:
@@ -4,9 +4,13 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- 'client/dictionaries/**'
|
||||
- 'client/resources/*.json'
|
||||
- 'tools/check_json_uniq.py'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'client/dictionaries/**'
|
||||
- 'client/resources/*.json'
|
||||
- 'tools/check_json_uniq.py'
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
@@ -20,3 +24,7 @@ jobs:
|
||||
run: |
|
||||
find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | sed 's/ *#.*//;/^$/d' | sed 's/\(.*\)/\U\1/' | sort | uniq -i -d -c | sort -n -r "
|
||||
if [[ $(find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | sed 's/ *#.*//;/^$/d' | sed 's/\(.*\)/\U\1/' | sort | uniq -i -d -c | sort -n -r " | grep -v '^\./' | wc -l) -gt 0 ]]; then exit 1; fi
|
||||
|
||||
- name: check unique AIDs in resource json files
|
||||
shell: bash
|
||||
run: python3 tools/check_json_uniq.py
|
||||
|
||||
Reference in New Issue
Block a user