Files
proxmark3/.github/workflows/uniq.yaml
T
Gabriele GristinaandClaude Opus 5.5 1e645dfd0a CI: update checkout, setup-python and upload-artifact to v7
actions/checkout v6 hands the Windows path of its credentials config to
git config --unset as a regex, which MSYS2's git rejects in the
ProxSpace job (actions/checkout#2528, fixed in v7.0.1). The
persist-credentials: false added for it did not help and is dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 22:04:55 +01:00

31 lines
981 B
YAML

name: Check uniq keys
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:
jobs:
check-unique:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v7
- name: check unique keys in dic files
shell: bash
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