mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 21:00:49 +00:00
7dc6456dca
[misc] update translations sync for monorepo GitOrigin-RevId: 794a9192212f7b63c040a08c42a1e9c6b3341609
18 lines
467 B
Bash
Executable file
18 lines
467 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
SCRIPT_PATH=$(realpath "${BASH_SOURCE[0]}")
|
|
SCRIPT_DIR=$(dirname "$SCRIPT_PATH")
|
|
WEB_DIR=$(dirname "$SCRIPT_DIR")
|
|
|
|
cd "$WEB_DIR"
|
|
|
|
if [[ `git status --porcelain=2 locales/` ]]; then
|
|
git add locales/*
|
|
git commit -m "auto update translation"
|
|
# Switch the cloudbuild clone from https to ssh authentication.
|
|
git remote set-url --push origin git@github.com:overleaf/internal.git
|
|
git push origin "HEAD:$BRANCH_NAME"
|
|
else
|
|
echo 'No changes'
|
|
fi
|