overleaf/services/web/bin/push-translations-changes.sh
nate stemen 397a3d97df Merge pull request #4374 from overleaf/jpa-support-main-branch
[misc] add support for main branch

GitOrigin-RevId: 0720706674db329d7f1ddb8e829da076b86c75f8
2021-08-04 02:05:45 +00:00

14 lines
267 B
Bash
Executable file

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