overleaf/services/web/bin/push-translations-changes.sh

11 lines
199 B
Bash
Raw Normal View History

#!/bin/bash
set -e
if [[ `git status --porcelain=2 locales/` ]]; then
git add locales/*
git commit -m "auto update translation"
git push $UPSTREAM_REPO HEAD:master
else
echo 'No changes'
fi