mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
[mod] always run list_builder if there is a new commit\n\nSince now we also need to run list_builder when the translations have been updated, testing exactly if he needs to run is more complicated, but the cache system has been improved so we can run it for every new commits \o/
This commit is contained in:
parent
1fadde98e7
commit
9a86ea03ed
1 changed files with 5 additions and 17 deletions
|
@ -14,31 +14,19 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
before_official=$(sha256sum official.json)
|
|
||||||
before_community=$(sha256sum community.json)
|
|
||||||
before_dev=$(sha256sum dev.json)
|
|
||||||
before_pull_commit=$(git show HEAD | head -n 1)
|
before_pull_commit=$(git show HEAD | head -n 1)
|
||||||
|
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
if [ "$before_official" != "$(sha256sum official.json)" ]
|
|
||||||
then
|
|
||||||
python ./list_builder.py -g $1 official.json
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$before_community" != "$(sha256sum community.json)" ]
|
|
||||||
then
|
|
||||||
python ./list_builder.py -g $1 community.json
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$before_dev" != "$(sha256sum dev.json)" ]
|
|
||||||
then
|
|
||||||
python ./list_builder.py -g $1 dev.json
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$before_pull_commit" != "$(git show HEAD | head -n 1)" ]
|
if [ "$before_pull_commit" != "$(git show HEAD | head -n 1)" ]
|
||||||
then
|
then
|
||||||
|
python ./list_builder.py -g $1 official.json
|
||||||
|
python ./list_builder.py -g $1 community.json
|
||||||
|
python ./list_builder.py -g $1 dev.json
|
||||||
|
|
||||||
python ./update_translations.py official-build.json community-build.json dev-build.json
|
python ./update_translations.py official-build.json community-build.json dev-build.json
|
||||||
|
|
||||||
if [ "$(git status -s| grep 'M locales/en.json')" ]
|
if [ "$(git status -s| grep 'M locales/en.json')" ]
|
||||||
then
|
then
|
||||||
git add locales/en.json
|
git add locales/en.json
|
||||||
|
|
Loading…
Add table
Reference in a new issue