mirror of
https://github.com/home-assistant/frontend
synced 2024-08-19 13:25:07 +02:00
Lokalise upload fix (#976)
* Pin lokalise sceript to working version * Include cleanups from the home-assistant scripts
This commit is contained in:
parent
675a3adfbe
commit
1fbad393bf
@ -22,7 +22,7 @@ script:
|
||||
services:
|
||||
- docker
|
||||
before_deploy:
|
||||
- docker pull lokalise/lokalise-cli
|
||||
- docker pull lokalise/lokalise-cli@sha256:79b3108211ed1fcc9f7b09a011bfc53c240fc2f3b7fa7f0c8390f593271b4cd7
|
||||
deploy:
|
||||
provider: script
|
||||
script: script/travis_deploy
|
||||
|
@ -26,10 +26,9 @@ FILE_FORMAT=json
|
||||
|
||||
mkdir -p ${LOCAL_DIR}
|
||||
|
||||
docker pull lokalise/lokalise-cli
|
||||
docker run \
|
||||
-v ${LOCAL_DIR}:/opt/dest/locale \
|
||||
lokalise/lokalise-cli lokalise \
|
||||
lokalise/lokalise-cli@sha256:79b3108211ed1fcc9f7b09a011bfc53c240fc2f3b7fa7f0c8390f593271b4cd7 lokalise \
|
||||
--token ${LOKALISE_TOKEN} \
|
||||
export ${PROJECT_ID} \
|
||||
--export_empty skip \
|
||||
|
@ -26,15 +26,14 @@ LANG_ISO=en
|
||||
|
||||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
if [ "${CURRENT_BRANCH}" != "master" ] && [ "${TRAVIS_BRANCH}" != "master" ] ; then
|
||||
if [ "${CURRENT_BRANCH-}" != "master" ] && [ "${TRAVIS_BRANCH-}" != "master" ] ; then
|
||||
echo "Please only run the translations upload script from a clean checkout of master."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker pull lokalise/lokalise-cli
|
||||
docker run \
|
||||
-v ${LOCAL_FILE}:/opt/src/${LOCAL_FILE} \
|
||||
lokalise/lokalise-cli lokalise \
|
||||
lokalise/lokalise-cli@sha256:79b3108211ed1fcc9f7b09a011bfc53c240fc2f3b7fa7f0c8390f593271b4cd7 lokalise \
|
||||
--token ${LOKALISE_TOKEN} \
|
||||
import ${PROJECT_ID} \
|
||||
--file /opt/src/${LOCAL_FILE} \
|
||||
|
Loading…
Reference in New Issue
Block a user