Skip to content

Merge pull request #2438 from nvx/fix_mfc_cardonly_staticnested_0nt_m… #43

Merge pull request #2438 from nvx/fix_mfc_cardonly_staticnested_0nt_m…

Merge pull request #2438 from nvx/fix_mfc_cardonly_staticnested_0nt_m… #43

Workflow file for this run

name: Check uniq keys
on:
push:
paths:
- 'client/dictionaries/**'
pull_request:
paths:
- 'client/dictionaries/**'
workflow_dispatch:
jobs:
check-unique:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: check unique keys in dic files
shell: bash
run: |
find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | sed 's/ *#.*//;/^$/d' | sort | uniq -i -d -c | sort -n -r "
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