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>
31 lines
981 B
YAML
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
|