update action

This commit is contained in:
link 2022-01-12 11:33:20 +08:00
parent 89d4552591
commit 67f409b484
2 changed files with 3 additions and 3 deletions

View File

@ -16,10 +16,10 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: test - name: test
run: | run: |
git clone https://github.com/IceWhaleTech/CasaOS-i18n.git
chmod +x ./help/action.sh chmod +x ./help/action.sh
./help/action.sh ./help/action.sh
cat en_us.json cat en_us.json
git clone https://github.com/IceWhaleTech/CasaOS-i18n.git
ls ls
# - name: Pushes to i18n repository # - name: Pushes to i18n repository

View File

@ -2,7 +2,7 @@ apt install jq
obj="{" obj="{"
for dir in Apps/*; do for dir in Apps/*; do
result=$(cat ./Apps/$dir/appfile.json) result=$(cat ./$dir/appfile.json)
tagline=$(echo "$result" | jq .tagline) tagline=$(echo "$result" | jq .tagline)
title=$(echo "$result" | jq .title) title=$(echo "$result" | jq .title)
overview=$(echo "$result" | jq .overview) overview=$(echo "$result" | jq .overview)
@ -13,4 +13,4 @@ done
obj=${obj%?} obj=${obj%?}
obj="${obj} }" obj="${obj} }"
data=$(echo "$obj" | jq .) data=$(echo "$obj" | jq .)
echo "$data" >en_us.json echo "$data" > ./CasaOS-i18n/back-end/en_us.json