chore(ci): format lang file (#2558)
This commit is contained in:
parent
0838feeb82
commit
4c5285e094
8
.github/workflows/auto_lang.yml
vendored
8
.github/workflows/auto_lang.yml
vendored
@ -42,6 +42,14 @@ jobs:
|
||||
cd alist
|
||||
go run ./main.go lang
|
||||
cd ..
|
||||
- name: Format lang file
|
||||
run: |
|
||||
for file in ./alist/lang/*.json
|
||||
do
|
||||
cp -f "$file" "$file.old" || :
|
||||
jq --sort-keys . "$file.old" > "$file" || :
|
||||
done
|
||||
rm ./alist/lang/*.json.old
|
||||
- name: Copy lang file
|
||||
run: |
|
||||
cp -f ./alist/lang/*.json ./alist-web/src/lang/en/ 2>/dev/null || :
|
||||
|
Loading…
x
Reference in New Issue
Block a user