update action
This commit is contained in:
parent
89d4552591
commit
67f409b484
|
@ -16,10 +16,10 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- name: test
|
||||
run: |
|
||||
git clone https://github.com/IceWhaleTech/CasaOS-i18n.git
|
||||
chmod +x ./help/action.sh
|
||||
./help/action.sh
|
||||
cat en_us.json
|
||||
git clone https://github.com/IceWhaleTech/CasaOS-i18n.git
|
||||
ls
|
||||
|
||||
# - name: Pushes to i18n repository
|
||||
|
|
|
@ -2,7 +2,7 @@ apt install jq
|
|||
|
||||
obj="{"
|
||||
for dir in Apps/*; do
|
||||
result=$(cat ./Apps/$dir/appfile.json)
|
||||
result=$(cat ./$dir/appfile.json)
|
||||
tagline=$(echo "$result" | jq .tagline)
|
||||
title=$(echo "$result" | jq .title)
|
||||
overview=$(echo "$result" | jq .overview)
|
||||
|
@ -13,4 +13,4 @@ done
|
|||
obj=${obj%?}
|
||||
obj="${obj} }"
|
||||
data=$(echo "$obj" | jq .)
|
||||
echo "$data" >en_us.json
|
||||
echo "$data" > ./CasaOS-i18n/back-end/en_us.json
|
||||
|
|
Loading…
Reference in New Issue