change out some non-breaking wait for response from some command which shouldnt have...
[RRG-proxmark3.git] / .github / workflows / uniq.yaml
blobe7223aaa8e49040276c25ff522f53ad84fb7fc41
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' | sort | uniq -i -d -c | sort -n -r "
22           if [[ $(find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | sed 's/ *#.*//;/^$/d' | sort | uniq -i -d -c | sort -n -r " | grep -v '^\./' | wc -l) -gt 0 ]]; then exit 1; fi