uniq workflow
This commit is contained in:
1 parent
f65d7cbed9
commit
2491c2b772
1 file changed
+20
@@ -0,0 +1,20 @@
|
||||
name: Check uniq keys
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'client/dictionaries/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'client/dictionaries/**'
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
check-unique:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: |
|
||||
find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | grep -v '#' | sort | uniq -i -d -c | sort -n -r "
|
||||
if [[ $(find . -type f -name "*.dic" | xargs -I {} sh -c "echo {} && cat {} | grep -v '#' | sort | uniq -i -d -c | sort -n -r " | grep -v "./" | wc -l) -gt 0 ]]; then exit 1; fi
|
||||
Reference in new issue
Block a user