R&Y: Added DAY RTA Tapp Card and Additional BKK BEM Stored Value Card AIDs to `aid_de...
[RRG-proxmark3.git] / .github / workflows / uniq.yaml
blob3c114f844f87f2676a42b8d4f26e7281f860cb17
1 name: Check uniq keys
3 on:
4   push:
5     paths:
6       - 'client/dictionaries/**'
7   pull_request:
8     paths:
9       - 'client/dictionaries/**'
10   workflow_dispatch:
13 jobs:
14   check-unique:
15     runs-on: ubuntu-22.04
16     steps:
17       - uses: actions/checkout@v4
18       - name: check unique keys in dic files
19         shell: bash
20         run: |
21           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 "
22           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