mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
397a3d97df
[misc] add support for main branch GitOrigin-RevId: 0720706674db329d7f1ddb8e829da076b86c75f8
14 lines
267 B
Bash
Executable file
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
|